summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-27 09:01:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-27 09:01:19 +0000
commitaead15121788fb48a6634971455cbee3baa92e33 (patch)
tree5604677f475672835460d414b463f7586561c357
parent1e2add12c688db459fbed7bf5c842ddb274fea69 (diff)
downloadsemanticscuttle-aead15121788fb48a6634971455cbee3baa92e33.tar.gz
semanticscuttle-aead15121788fb48a6634971455cbee3baa92e33.tar.bz2
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
-rw-r--r--services/bookmarkservice.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/bookmarkservice.php b/services/bookmarkservice.php
index dd23d93..55562e2 100644
--- a/services/bookmarkservice.php
+++ b/services/bookmarkservice.php
@@ -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