Sébastien --<br><br>It does not make sense to be me to use Extended Attributes, because the template logic cannot depend on them since they are user-defined. <br><br>Right now, the reason Granular Permissions works is becuase C4::Auth actually populates the template parameters with all the granular subpermissions if the top level is defined. That way the template can still look for the same flag, like: <br>
<div style="margin-left: 40px;"><!-- TMPL_IF NAME="CAN_user_tools_inventory" --><br></div><br>Koha can't autopopulate from extended attributes, because those are user-defined. However, you might experiment with parsing attributes of the same name as the granular permission. You would need an additional syspref to control whether to do the additional parsing, and perhaps a lot of refactoring. Even then you don't have the "group" behavior you want. You just have permisions from extended attributes.<br>
<br>-- <br>Joe Atzberger<br>LibLime - Open Source Library Solutions<br><br><div class="gmail_quote">On Wed, Jun 3, 2009 at 12:49 PM, Sébastien Hinderer <span dir="ltr"><<a href="mailto:Sebastien.Hinderer@snv.jussieu.fr">Sebastien.Hinderer@snv.jussieu.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi JOe,<br>
<br>
Thanks for your reply.<br>
Actually, I am thinking about simulating groups with user attributes<br>
Does this look like a good way to proceed to all of you ?<br>
<br>
Many thanks in advance for helping,<br>
<div><div></div><div class="h5">Sébastien.</div></div></blockquote></div><br>