aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-04-11 17:05:41 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-04-11 17:05:41 +0000
commit9a37642ab5ea485f2ac73a580b00a67e39151d89 (patch)
treed18aee04da2d9892cd65c3aab338aa3af53415b5 /services
parentd3642f6b0ed1ee5a7654fe7eff375ca1212c267d (diff)
downloadsemanticscuttle-9a37642ab5ea485f2ac73a580b00a67e39151d89.tar.gz
semanticscuttle-9a37642ab5ea485f2ac73a580b00a67e39151d89.tar.bz2
Interface fix: admin cannot edit other admins' bookmarks.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@310 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services')
-rw-r--r--services/bookmarkservice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/bookmarkservice.php b/services/bookmarkservice.php
index 1719b80..f41df53 100644
--- a/services/bookmarkservice.php
+++ b/services/bookmarkservice.php
@@ -109,7 +109,7 @@ class BookmarkService {
$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) && !$userservice->isAdmin($bookmark['uId']))
return true;
else
return ($bookmark['uId'] == $userid);