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:
cweiske 2010-02-20 11:33:11 +00:00
parent 51e844e17e
commit 41a29f49ee

View file

@ -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);
}
}