Index: openacs-4/packages/acs-content-repository/www/doc/api/permission.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/permission.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/acs-content-repository/www/doc/api/permission.adp 27 Oct 2014 16:39:14 -0000 1.2
+++ openacs-4/packages/acs-content-repository/www/doc/api/permission.adp 7 Aug 2017 23:47:47 -0000 1.3
@@ -1,28 +1,39 @@
-
-Content Repository :
-content_permission
+Content Repository :
+content_permission Permissions can be set to allow certain users certain things. -
+ Permissions can be set to allow certain users certain things. -
They can be compared with the Unix filesystem permission: read,
-write ... content_permission
+
+content_permission
+
+Overview
Overview
+Related Objects
+write ...
+
+
Determine if the user may grant a certain permission to another +content_permission.has_grant_authority +
Determine if the user may grant a certain permission to another user. The permission may only be granted if the user has the -permission himself and posesses the cm_perm access, or if the user -posesses the cm_perm_admin access.
Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Returns: | 't' if the donation is possible, 'f' -otherwise | +Returns: | 't' if the donation is possible, +'f' otherwise | ||||
Parameters: | |||||||
| |||||||
Declaration: | |||||||
+ |
function has_grant_authority ( object_id in acs_objects.object_id%TYPE, holder_id in parties.party_id%TYPE, privilege in acs_privileges.privilege%TYPE ) return varchar2; -
+
Determine if the user may take a certain permission away from +content_permission.has_revoke_authority +
Determine if the user may take a certain permission away from another user. The permission may only be revoked if the user has -the permission himself and posesses the cm_perm access, while the -other user does not, or if the user posesses the cm_perm_admin +the permission himself and possesses the cm_perm access, while the +other user does not, or if the user possesses the cm_perm_admin access.
Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Returns: | 't' if it is possible to revoke the privilege, 'f' -otherwise | +Returns: | 't' if it is possible to revoke the +privilege, 'f' otherwise | ||||
Parameters: | |||||||
| |||||||
Declaration: | |||||||
+ |
function has_revoke_authority ( object_id in acs_objects.object_id%TYPE, holder_id in parties.party_id%TYPE, privilege in acs_privileges.privilege%TYPE, revokee_id in parties.party_id%TYPE ) return varchar2; -
+
Determine if the user has the specified permission on the +content_permission.permission_p +
Determine if the user has the specified permission on the specified object. Does NOT check objects recursively: that is, if the user has the permission on the parent object, he does not automatically gain the permission on all the child objects.
Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Returns: | 't' if the user has the specified permission on -the object, 'f' otherwise | +Returns: | 't' if the user has the specified +permission on the object, 'f' otherwise | ||||
Parameters: | |||||||
| |||||||
Declaration: | |||||||
+ |
function permission_p ( object_id in acs_objects.object_id%TYPE, holder_id in parties.party_id%TYPE, privilege in acs_privileges.privilege%TYPE ) return varchar2; -
+
This is a helper function for +content_permission.grant_permission +
This is a helper function for content_permission.grant_permission and should not be called individually.
Grants a permission and revokes all descendants of the permission, since they are no longer relevant.
privilege: | The parent privilege to be granted |
---|
+
procedure grant_permission_h ( object_id in acs_objects.object_id%TYPE, grantee_id in parties.party_id%TYPE, privilege in acs_privileges.privilege%TYPE ); -
+
This is a helper function for +content_permission.grant_permission_h +
This is a helper function for content_permission.grant_permission and should not be called individually.
Grants a permission and revokes all descendants of the permission, since they are no longer relevant.
privilege: | The parent privilege to be granted |
---|
+
procedure grant_permission_h ( object_id in acs_objects.object_id%TYPE, grantee_id in parties.party_id%TYPE, privilege in acs_privileges.privilege%TYPE ); -
+
Make the child object inherit all of the permissions of the +content_permission.inherit_permissions +
Make the child object inherit all of the permissions of the parent object. Typically, this function is called whenever a new object is created under a given parent
child_object_id: | The child object id |
---|
+
procedure inherit_permissions ( parent_object_id in acs_objects.object_id%TYPE, child_object_id in acs_objects.object_id%TYPE, child_creator_id in parties.party_id%TYPE default null ); -
+
This is a helper function for +content_permission.revoke_permission +
This is a helper function for content_permission.revoke_permission and should not be called individually.
Revokes a permission but grants all child permissions to the holder, to ensure that the permission is not permanently lost
privilege: | The parent privilege to be revoked |
---|
+
procedure revoke_permission_h ( object_id in acs_objects.object_id%TYPE, revokee_id in parties.party_id%TYPE, privilege in acs_privileges.privilege%TYPE ); -
+
This is a helper function for +content_permission.revoke_permission_h +
This is a helper function for content_permission.revoke_permission and should not be called individually.
Revokes a permission but grants all child permissions to the holder, to ensure that the permission is not permanently lost
privilege: | The parent privilege to be revoked |
---|
+
procedure revoke_permission_h ( object_id in acs_objects.object_id%TYPE, revokee_id in parties.party_id%TYPE, privilege in acs_privileges.privilege%TYPE ); -
-Last Modified: $Id: permission.html,v 1.1.1.1 2001/03/13 22:59:26 -ben Exp $ - + +
+ +Last Modified: $Id: permission.html,v 1.1.1.1.30.3 2017/04/21 +14:53:08 gustafn Exp $