From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 29 Jun 2006 17:51:12 -0000 Subject: [Cluster-devel] conga/luci/utils luci_admin Message-ID: <20060629175112.6777.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: rmccabe at sourceware.org 2006-06-29 17:51:12 Modified files: luci/utils : luci_admin Log message: fix permissions bug after a restore for non-admin users Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_admin.diff?cvsroot=cluster&r1=1.23&r2=1.24 --- conga/luci/utils/luci_admin 2006/06/27 19:50:09 1.23 +++ conga/luci/utils/luci_admin 2006/06/29 17:51:12 1.24 @@ -306,6 +306,8 @@ new_system = app.unrestrictedTraverse('/luci/systems/storage/' + id) if not new_system: raise + new_system.manage_acquiredPermissions([]) + new_system.manage_role('View', ['Access contents information','View']) except: sys.stderr.write('An error occurred while restoring storage system \"' + id + '\"\n') transaction.abort() @@ -365,6 +367,8 @@ new_cluster = app.unrestrictedTraverse('/luci/systems/cluster/'+ id) if not new_cluster: raise + new_cluster.manage_acquiredPermissions([]) + new_cluster.manage_role('View', ['Access contents information','View']) except: sys.stderr.write('An error occurred while restoring the cluster \"' + id + '\"\n') transaction.abort() @@ -410,6 +414,8 @@ newcs = app.unrestrictedTraverse('/luci/systems/cluster/' + id + '/' + newsys) if not newcs: raise + newcs.manage_acquiredPermissions([]) + newcs.manage_role('View', ['Access contents information','View']) except: sys.stderr.write('An error occurred while restoring the storage system \"' + newsys + '\" for cluster \"' + id + '\"\n') transaction.abort()