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:
mensonge 2009-02-27 09:01:19 +00:00
parent 1e2add12c6
commit aead151217

View file

@ -107,6 +107,8 @@ class BookmarkService {
$userservice = & ServiceFactory :: getServiceInstance('UserService'); $userservice = & ServiceFactory :: getServiceInstance('UserService');
$userid = $userservice->getCurrentUserId(); $userid = $userservice->getCurrentUserId();
if(!is_numeric($userid))
return false; // useful for few servers configuration (see brunaud bugs)
if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers'] && $userservice->isAdmin($userid)) if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers'] && $userservice->isAdmin($userid))
return true; return true;
else else