changed: there is one dir called root (has parent_id -1)
(we have an owner, group, privileges etc of the root dir) the root.id of course is not -1 git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@468 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -384,7 +384,7 @@ bool Request::HasAccess(const Item & item, int mask)
|
||||
|
||||
if( session->puser && session->puser->IsMemberOf(item.group_id) )
|
||||
{
|
||||
// group
|
||||
// group
|
||||
return ((item.privileges >> 3) & mask) == mask;
|
||||
}
|
||||
|
||||
@@ -411,7 +411,7 @@ bool Request::HasReadWriteAccess(const Item & item)
|
||||
}
|
||||
|
||||
|
||||
bool Request::HasExecAccess(const Item & item)
|
||||
bool Request::HasReadExecAccess(const Item & item)
|
||||
{
|
||||
return HasAccess(item, 5); // r+x
|
||||
}
|
||||
|
Reference in New Issue
Block a user