Posted by admin on March 24, 2009
Sample User (user_id:28358) with profile “Sales” (group_id:473) can’t see Employees: Principal routine to check permissions create function acs_permission__permission_p(int4,int4,varchar) returns bool as ‘ declare permission_p__object_id alias for $1; permission_p__party_id alias for $2; permission_p__privilege alias for $3; exists_p boolean; begin return exists (select 1 from acs_permissions p, party_approved_member_map m, acs_object_context_index c, acs_privilege_descendant_map h where p.object_id = c.ancestor_id [...]
Posted by admin on February 1, 2009
On this page: Control flow / Conditions Localization Categories Permissions Views OpenACS Packages User Management Database String operations Error handling Page contract Sanity checks See also Common constructs writing ]po[ update scripts Common used build in tcl commands Commonly used sql constructs Debugging Control flow / Conditions Check for existing variable exists_and_not_null project_id Localization OpenACS [...]
Posted by admin on May 28, 2008
Before a user can create or view a Financial Document, a permission check is performed. As a sample we will have a closer look what is checks are performed when a user wants to create a new quote. Permission checks creation of a new quote: /intranet-invoices/new?cost_type_id=3702 1) Depending on the required permission type (read/write) a [...]
Posted by admin on October 30, 2007
What are ]po[ privileges? Privileges allow a user to perform a certain operation in the system. Find more information about privileges in the po-dev-openacs-developersguide.061201a.doc or in OpenACS Permissions Tediously Explained. Sample:Setting privileges on a component -- ----------------------------------------------------- -- Add privileges for freelance_skills -- create or replace function inline_0 () returns integer as ' declare v_count [...]