fixed: not logged users are not allowed to remove anything
(temporarily - we're waiting for the sticky bit) git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@556 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
89daf6489d
commit
71763d340e
|
@ -760,6 +760,11 @@ return true;
|
|||
|
||||
bool Request::CanRemove(const Item & item)
|
||||
{
|
||||
// !! temporarily (we're waiting for the sticky bit to be implemented)
|
||||
// not logged users cannot remove anything
|
||||
if( !request.session->puser )
|
||||
return false;
|
||||
|
||||
if( item.parent_id == -1 )
|
||||
{
|
||||
// rm for the root dir
|
||||
|
|
Loading…
Reference in New Issue