User Tools

Site Tools


pracro:acl

This is an old revision of the document!


ACL

Template:

<?xml version='1.0' encoding='UTF-8'?>
<template name="ref_forunders" version="1.0" title="Refraktiv kirurgi forundersøgelse">
  <acls>
    <acl action="commit" entity="nurse/>
    <acl action="commit" entity="br"/>
  </acls>
 
  <macro name="header" static="true"/>
  <macro name="henvisning" aclread="all" aclwrite="all"/>
 
  <header caption="Anamnese"/>
  <macro name="allergier" requires="henvisning">
    <restrictions>
      <restrict action="read" role="all"/>
      <restrict action="write" role="doctor"/>
    </restrictions>
  </macro>
 
  <macro name="medicin" requires="henvisning" compact="true" aclread="all" aclwrite="doctor,nurse,br"/>
  <macro name="alment" requires="henvisning" aclread="doctor" aclwrite="none"/>
</template>

aclXXXXX attributes contain lists of either userids and/or groupids. Currently: 'aclread', 'aclwrite' and 'aclcommit'. aclwrite and aclread can be connected with the template and is inherited to all the contained macros.

Users and Groups:

# some config file in libconfig++ format
roles = (
          {id="doctor", contains=("nurse", "optician")},
          {id="nurse", contains=("employee")},
          {id="optician", contains=("employee")},
          {id="employee", contains=()}
        );
users = (
          {id="akf"; name="Anne Kaufmann Frederiksen"; roles=("doctor")},
          {id="ua"; name="Ulla Andersen"; roles=("nurse")},
          {id="jbo"; name="Jens Børge Olfgård"; roles=("optician")}
        );
pracro/acl.1302508364.txt.gz · Last modified: 2011/04/11 09:52 by deva