calendar::item::assign_permission (public, deprecated)

 calendar::item::assign_permission cal_item_id party_id permission \
    [ revoke ]

Defined in packages/calendar/tcl/cal-item-procs.tcl

Deprecated. Invoking this procedure generates a warning.

update the permission of the specific cal_item if revoke is set to revoke, then we revoke all permissions DEPRECATED: this api is in fact a trivial wrapper for the permission api.

Parameters:
cal_item_id (required)
party_id (required)
permission (required)
revoke (optional)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) permission::grant permission::grant (public) permission::revoke permission::revoke (public) calendar::item::assign_permission calendar::item::assign_permission calendar::item::assign_permission->ad_log_deprecated calendar::item::assign_permission->permission::grant calendar::item::assign_permission->permission::revoke

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc calendar::item::assign_permission
    if { $revoke ne "revoke" } {
        if { $permission ne "cal_item_read" } {
            permission::grant -object_id $cal_item_id -party_id $party_id -privilege cal_item_read
        }
        permission::grant -object_id $cal_item_id -party_id $party_id -privilege $permission
    } elseif {$revoke eq "revoke"} {
        permission::revoke -object_id $cal_item_id -party_id $party_id -privilege $permission

    }
Generic XQL file:
packages/calendar/tcl/cal-item-procs.xql

PostgreSQL XQL file:
packages/calendar/tcl/cal-item-procs-postgresql.xql

Oracle XQL file:
packages/calendar/tcl/cal-item-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: