Show
Ignore:
Timestamp:
10/07/04 16:35:40 (20 years ago)
Author:
jalet
Message:

Now edpykota refuses to launch if the user is not a PyKota administrator.
dumpykota : now has the same error message than edpykota in this case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r1755 r1789  
    2424# 
    2525# $Log$ 
     26# Revision 1.78  2004/10/07 14:35:40  jalet 
     27# Now edpykota refuses to launch if the user is not a PyKota administrator. 
     28# dumpykota : now has the same error message than edpykota in this case. 
     29# 
    2630# Revision 1.77  2004/09/28 17:45:31  jalet 
    2731# Added the --hardreset command line option to edpykota 
     
    458462    def main(self, names, options) : 
    459463        """Edit user or group quotas.""" 
     464        if not self.config.isAdmin : 
     465            raise PyKotaToolError, _("You're not allowed to use this command.") 
    460466         
    461467        suffix = (options["groups"] and "Group") or "User"