permission::write_permission_p (public)
permission::write_permission_p -object_id object_id \ [ -party_id party_id ] [ -creation_user creation_user ]
Defined in packages/acs-tcl/tcl/acs-permissions-procs.tcl
Returns whether a party is allowed to edit an object. The logic is that this party must have either write permission, or it must be the one who created the object.
- Switches:
- -object_id (required)
- The object you want to check write permissions for.
- -party_id (optional)
- The party to have or not have write permission.
- -creation_user (optional)
- Optionally specify creation_user directly as an optimization. Otherwise a query will be executed.
- Returns:
- Boolean value expressing if the user has permission to edit the object
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.