trac-admin will not remove users from permission groups
|Reported by:||Owned by:||Christopher Lenz|
trac-admin allows to add lower case permission, but is not able to delete these permissions again. Looking in the source the first problem seems to be a simple typo.
def _do_permission_add(self, user, action): if not action.islower() and not action.isupper(): print 'group-names must be in lower case and permissions in upper case' return self.db_execsql("INSERT INTO permission VALUES('%s', '%s')" % (user, action))
action.islower() should read
The second problem is related to the first, since all actions are forced to be upper case. So the question is, wether there should be a sanity check to be able to recover from wrong entries. Right now, the wrong entry can only be removed via direct access to the database.