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:
Tomasz Sowa 2010-01-25 07:04:34 +00:00
parent 89daf6489d
commit 71763d340e
1 changed files with 5 additions and 0 deletions

View File

@ -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