Fix "TypeError: group id must be integer" if groupid passed in for group

key
reviewable/pr18780/r1
Peter Hall 10 years ago
parent 1cc9b6d90b
commit ae67002c15

@ -440,7 +440,7 @@ class User(object):
def group_exists(self,group):
try:
if group.isdigit():
if grp.getgrgid(group):
if grp.getgrgid(int(group)):
return True
else:
if grp.getgrnam(group):

Loading…
Cancel
Save