Skip to content

Commit

Permalink
convertusers: fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
drakkan committed Mar 27, 2021
1 parent 9ad750d commit cee2e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/convertusers/convertusers
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ConvertUsers:
def buildUserObject(self, username, password, home_dir, uid, gid, max_sessions, quota_size, quota_files, upload_bandwidth,
download_bandwidth, status, expiration_date, allowed_ip=[], denied_ip=[]):
return {'id':0, 'username':username, 'password':password, 'home_dir':home_dir, 'uid':uid, 'gid':gid,
'max_sessions':max_sessions, 'quota_size':quota_size, 'quota_files':quota_files, 'permissions':{'/':"*"},
'max_sessions':max_sessions, 'quota_size':quota_size, 'quota_files':quota_files, 'permissions':{'/':["*"]},
'upload_bandwidth':upload_bandwidth, 'download_bandwidth':download_bandwidth,
'status':status, 'expiration_date':expiration_date,
'filters':{'allowed_ip':allowed_ip, 'denied_ip':denied_ip}}
Expand Down

0 comments on commit cee2e18

Please sign in to comment.