User Tools

Site Tools


pracro:acl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pracro:acl [2011/04/11 12:04] devapracro:acl [2011/04/13 14:33] (current) deva
Line 1: Line 1:
 ======ACL====== ======ACL======
-=====Design1=====+=====Server===== 
 +====Design1====
 Templates contain ACLs. The users and roles are defined in a config file.\\ Templates contain ACLs. The users and roles are defined in a config file.\\
 Template: Template:
Line 33: Line 34:
 </code> </code>
  
-=====Design2=====+====Design2====
 No changes to template. ACLs are defined in config file, with 'realms' being templates and macros.\\ No changes to template. ACLs are defined in config file, with 'realms' being templates and macros.\\
 ACL file: ACL file:
Line 44: Line 45:
  
 Users and roles can be defined as in //Design1//. Users and roles can be defined as in //Design1//.
 +
 +=====Client=====
 +The data received on the client must indicate what features that is to be enabled for the current user, without the client having to make an explicit user lookup.
 +Example:
 +<code xml>
 +<?xml version='1.0' encoding='UTF-8'?>
 +<template name="ref_forunders" version="1.0" title="Refraktiv kirurgi forundersøgelse"
 +          features="nocommit">
 +  <macro name="header" static="true"/>
 +  <macro name="henvisning" restricted="true"/>
 +  <macro name="allergier"/>
 +</template>
 +</code>
 +Making the commit button disabled or invisible and the 'henvisning' disabled/locked.
pracro/acl.1302516287.txt.gz · Last modified: 2011/04/11 12:04 by deva