Cosmetics changes : remove ending lines spaces
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3012 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -48,7 +48,7 @@ class authzgroups
|
||||
".$this->tableprefix."authzobject AS o,
|
||||
".$this->tableprefix."authzgroup AS g,
|
||||
".$this->tableprefix."authzgroupmember AS gm
|
||||
WHERE r.idgroup=g.idgroup AND r.idobject=o.idobject AND
|
||||
WHERE r.idgroup=g.idgroup AND r.idobject=o.idobject AND
|
||||
gm.idgroup=g.idgroup
|
||||
AND gm.user=:user AND g.module=:module
|
||||
GROUP BY o.object
|
||||
@@ -110,7 +110,7 @@ class authzgroups
|
||||
// The complete tree should not be readable for the user : it can have
|
||||
// access to a card, but not to all the cards (group -> reject,
|
||||
// group/XXX->allow)
|
||||
/*// Limit to allowed trees : if a member of the path is not recorded (is
|
||||
/*// Limit to allowed trees : if a member of the path is not recorded (is
|
||||
// unreadable), return NO.
|
||||
// Can be the last entry (the complete object) too
|
||||
$path = explode ("/", $object);
|
||||
@@ -119,7 +119,7 @@ class authzgroups
|
||||
{
|
||||
if ($k>1)
|
||||
$completePath .= "/";
|
||||
$completePath .= "$p";
|
||||
$completePath .= "$p";
|
||||
if (! isset ($ressource[$completePath]))
|
||||
{
|
||||
if ($this->debug)
|
||||
@@ -132,7 +132,7 @@ class authzgroups
|
||||
return $ressource[$object];
|
||||
}
|
||||
|
||||
/** Return TRUE if the user right allow to see the object (RO or RW)
|
||||
/** Return TRUE if the user right allow to see the object (RO or RW)
|
||||
Return a 403 Exception if the user don't have the right
|
||||
Return a 401 Exception if the user is not connected */
|
||||
public function accessRight ($module, $user, $object)
|
||||
@@ -246,7 +246,7 @@ class authzgroups
|
||||
$this->dbObject->unique = array ("idobject", array ("object", "module"));
|
||||
$this->dbObject->titles = array ("idobject"=>dgettext("domframework",
|
||||
"idobject"),
|
||||
"module"=>dgettext("domframework",
|
||||
"module"=>dgettext("domframework",
|
||||
"Module"),
|
||||
"object"=>dgettext("domframework",
|
||||
"Object"),
|
||||
@@ -354,7 +354,7 @@ class authzgroups
|
||||
$tables = array ("Object", "Group", "GroupMember", "Right");
|
||||
foreach ($tables as $table)
|
||||
{
|
||||
try
|
||||
try
|
||||
{
|
||||
$class= "db$table";
|
||||
$this->$class->createTable ();
|
||||
@@ -988,9 +988,9 @@ class authzgroups
|
||||
throw new Exception (dgettext ("domframework",
|
||||
"DB for Right is not connected"), 500);
|
||||
$select[] = array ("idright", $idright);
|
||||
return $this->dbRight->read ($select);
|
||||
return $this->dbRight->read ($select);
|
||||
}
|
||||
|
||||
|
||||
/** Return an array with all the available rights for a module and an object
|
||||
*/
|
||||
public function rightReadByObject ($module, $object)
|
||||
@@ -1003,7 +1003,7 @@ class authzgroups
|
||||
throw new Exception (dgettext ("domframework",
|
||||
"Wanted object not found"), 404);
|
||||
$select[] = array ("idobject", $objects[0]["idobject"]);
|
||||
return $this->dbRight->read ($select);
|
||||
return $this->dbRight->read ($select);
|
||||
}
|
||||
|
||||
/** Return an array with all the available rights for a module and an idobject
|
||||
|
||||
Reference in New Issue
Block a user