From 1a3ba2c65677de8fddbbd9ec068572f2dfe82910 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sun, 21 Feb 2021 13:18:38 +0500 Subject: [PATCH] change acl permissions to json --- plogical/upgrade.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index c97d7f6cd..6bbf03dff 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -650,17 +650,17 @@ imap_folder_list_limit = 0 pass try: - cursor.execute("UPDATE loginSystem_acl SET config = '%s' where userName = 'admin'" % (Upgrade.AdminACL)) + cursor.execute("UPDATE loginSystem_acl SET config = '%s' where name = 'admin'" % (Upgrade.AdminACL)) except: pass try: - cursor.execute("UPDATE loginSystem_acl SET config = '%s' where userName = 'reseller'" % (Upgrade.ResellerACL)) + cursor.execute("UPDATE loginSystem_acl SET config = '%s' where name = 'reseller'" % (Upgrade.ResellerACL)) except: pass try: - cursor.execute("UPDATE loginSystem_acl SET config = '%s' where userName = 'user'" % (Upgrade.UserACL)) + cursor.execute("UPDATE loginSystem_acl SET config = '%s' where name = 'user'" % (Upgrade.UserACL)) except: pass