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
Last revisionBoth sides next revision
pracro:acl [2011/04/11 09:57] devapracro:acl [2011/04/13 14:33] deva
Line 1: Line 1:
 ======ACL====== ======ACL======
 +=====Server=====
 +====Design1====
 +Templates contain ACLs. The users and roles are defined in a config file.\\
 Template: Template:
 <code xml> <code xml>
Line 30: Line 33:
         );         );
 </code> </code>
 +
 +====Design2====
 +No changes to template. ACLs are defined in config file, with 'realms' being templates and macros.\\
 +ACL file:
 +<code>Syntax: template | :macro | template:macro action { rolelist }</code>
 +<code>
 +ref_forunders write {"doctor"}
 +:henvisning write {"nurse", "doctor"}
 +ref_forunders:allergier write {"doctor"}
 +</code>
 +
 +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 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.txt · Last modified: 2011/04/13 14:33 by deva