Minor fix: correct bug in editallowed() for some servers' configurations
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@299 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
1e2add12c6
commit
aead151217
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ class BookmarkService {
|
|||
|
||||
$userservice = & ServiceFactory :: getServiceInstance('UserService');
|
||||
$userid = $userservice->getCurrentUserId();
|
||||
if(!is_numeric($userid))
|
||||
return false; // useful for few servers configuration (see brunaud bugs)
|
||||
if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers'] && $userservice->isAdmin($userid))
|
||||
return true;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue