app_addaccess()

This commit is contained in:
Kload 2013-03-03 16:07:07 +01:00
parent c981a3f631
commit aa2b2fd918

View file

@ -418,8 +418,14 @@ def app_addaccess(apps, users):
new_users = ''
for allowed_user in users:
if allowed_user not in new_users.split(' '):
new_users = new_users +' '+ allowed_user
app_settings['allowed_users'] = new_users
with open(apps_setting_path + installed_app +'/app_settings.yml', 'w') as f:
yaml.safe_dump(app_settings, f, default_flow_style=False)
win_msg(_("App setting file updated"))
lemon_conf_lines[('locationRules', app_settings['domain'], '(?#'+ installed_app +'Z)^'+ app_settings['path'] )] = '$uid ~~ qw('+ new_users +')'
lemon_configuration(lemon_conf_lines)