[Zope3-checkins] CVS: Zope3/src/zope/app/security/grants -
principalpermission.py:1.4 rolepermission.py:1.4
Sidnei da Silva
sidnei at x3ng.com.br
Mon Oct 6 15:30:20 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/security/grants
In directory cvs.zope.org:/tmp/cvs-serv422/grants
Modified Files:
principalpermission.py rolepermission.py
Log Message:
Honor 'Deny' setting on role, both placeful and placeless
=== Zope3/src/zope/app/security/grants/principalpermission.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/security/grants/principalpermission.py:1.3 Sat Jun 7 01:46:03 2003
+++ Zope3/src/zope/app/security/grants/principalpermission.py Mon Oct 6 15:29:49 2003
@@ -133,7 +133,7 @@
# Don't check validity intentionally.
# After all, we certianly want to unset invalid ids.
-
+
self.delCell(permission_id, principal_id)
def getPrincipalsForPermission(self, permission_id):
=== Zope3/src/zope/app/security/grants/rolepermission.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/security/grants/rolepermission.py:1.3 Sat Jun 7 01:46:03 2003
+++ Zope3/src/zope/app/security/grants/rolepermission.py Mon Oct 6 15:29:49 2003
@@ -158,7 +158,7 @@
if check:
checkRole(None, role_id)
checkPermission(None, permission_id)
-
+
self.addCell(permission_id, role_id, Allow)
def denyPermissionToRole(self, permission_id, role_id, check=True):
@@ -167,7 +167,7 @@
if check:
checkRole(None, role_id)
checkPermission(None, permission_id)
-
+
self.addCell(permission_id, role_id, Deny)
def unsetPermissionFromRole(self, permission_id, role_id):
@@ -175,7 +175,7 @@
# Don't check validity intentionally.
# After all, we certianly want to unset invalid ids.
-
+
self.delCell(permission_id, role_id)
def getRolesForPermission(self, permission_id):
More information about the Zope3-Checkins
mailing list