save another query
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@677 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
51e844e17e
commit
41a29f49ee
1 changed files with 2 additions and 2 deletions
|
@ -284,7 +284,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
|
|||
}
|
||||
|
||||
$userservice = SemanticScuttle_Service_Factory::get('User');
|
||||
$user = $userservice->getCurrentUser();
|
||||
$user = $userservice->getCurrentObjectUser();
|
||||
|
||||
//user has to be either admin, or owner
|
||||
if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers']
|
||||
|
@ -292,7 +292,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
|
|||
) {
|
||||
return true;
|
||||
} else {
|
||||
return ($bookmark['uId'] == $user['uId']);
|
||||
return ($bookmark['uId'] == $user->id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue