<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6002.18255" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Calibri>Vince,</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Moodle does this out of the box...</FONT></DIV>
<DIV><FONT face=Calibri><A
href="http://moodle.org/">http://moodle.org/</A></FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>C.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=vincew@eurinsol.eu href="mailto:vincew@eurinsol.eu">vincew</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=consulting@drupal.org
href="mailto:consulting@drupal.org">consulting@drupal.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, February 03, 2011 9:35
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [consulting] is ACL /CRUD based
on multiple values with a ANDclause possible?</DIV>
<DIV><BR></DIV>LS,<BR><BR>I'm preparing a next drupal project and I'm having
some requirements<BR>regarding ACL/CRUD. I'll elaborate what I would like to
achieve with a<BR>small use-case. I've taken this use-case into the realm of
education,<BR>but it's also applicable on several other realms (business for
instance<BR>with organisation/proces groups).<BR><BR>(btw: I've created a
support request for in the OG module queue at<BR>jan-20, but there wasn't a
reaction. Perhaps it wasn't the correct<BR>place, so I give it a try here. The
support request can be found at:<BR><A
href="http://drupal.org/node/1033584">http://drupal.org/node/1033584</A><BR><BR><BR><BR>There
is a contenttype called: Evaluation. An evaluation has 2 fields:<BR>-
Location<BR>- Course<BR><BR>Users of the system can have different roles:<BR>-
administration<BR>- teacher<BR>- student<BR><BR>Users can be related to zero
or more Locations and Courses<BR><BR>What I would like to have is ACL/CRUD
based on the relationship of the<BR>fields. For instance in a way that a post
of an Evaluation with the<BR>fields: <BR>- Amsterdam <BR>- Math<BR><BR>can be
CRUD only by users related to both of the field values AND who<BR>have the
correct permission to do so.<BR><BR>so<BR>- a user in the role of
administration for Amsterdam/Math can Create an<BR>Evaluation for
Amsterdam/Math<BR>- a user student for Amsterdam/Math can Read an
Evaluation<BR>- a teacher for Amsterdam/Math can Edit an Evaluation<BR><BR>- a
teacher for Amsterdam/Math can view all Evaluations of Amsterdam<BR>AND/OR all
Evaluations for Math<BR><BR>but:<BR>- a student for Berlin/Math or
Amsterdam/Music can't view the evaluation<BR><BR><BR>What I would like to know
is:<BR><BR> 1. Can this be done with
OG?<BR> 2. If not, is there an existing sub module for
this concept?<BR> 3. If it can be done with OG, can
anyone point me in the direction<BR>
of setting this up? (any OG (submodule) settings
and/or<BR> og_access_hooks or
so)<BR> 4. Should I define my own content_type_course
module where I can<BR> specify the
CRUD access rules and are there any caveats to this<BR><BR>Tnx for reading
(and answering) this.<BR><BR>Best,<BR>VinceW<BR><BR>--
<BR><BR>--------------------------------<BR>European Information
Solutions<BR>--------------------------------<BR><BR>T
: +31 412 474015<BR>F : +31 412
475194<BR>M : +31 630
115252<BR>Email : <A
href="mailto:info@eurinsol.eu">info@eurinsol.eu</A><BR>Website : <A
href="http://www.eurinsol.eu">http://www.eurinsol.eu</A><BR><BR>--------------------------------<BR>Your
Information Matters<BR>--------------------------------
<BR><BR><BR><BR><BR>_______________________________________________<BR>consulting
mailing list<BR><A
href="mailto:consulting@drupal.org">consulting@drupal.org</A><BR><A
href="http://lists.drupal.org/mailman/listinfo/consulting">http://lists.drupal.org/mailman/listinfo/consulting</A><BR></BLOCKQUOTE></BODY></HTML>