From 9a37642ab5ea485f2ac73a580b00a67e39151d89 Mon Sep 17 00:00:00 2001 From: mensonge Date: Sat, 11 Apr 2009 17:05:41 +0000 Subject: [PATCH] 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 --- services/bookmarkservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);