aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/pages/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks/pages/edit.php')
-rw-r--r--mod/bookmarks/pages/edit.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/bookmarks/pages/edit.php b/mod/bookmarks/pages/edit.php
index 1c74a592a..7b055e699 100644
--- a/mod/bookmarks/pages/edit.php
+++ b/mod/bookmarks/pages/edit.php
@@ -5,13 +5,12 @@
* @package ElggBookmarks
*/
-gatekeeper();
$bookmark_guid = get_input('guid');
$bookmark = get_entity($bookmark_guid);
$container_guid = (int) get_input('container_guid');
$container = get_entity($container_guid);
-if (!elgg_instanceof($bookmark, 'object', 'bookmarks')) {
+if (!elgg_instanceof($bookmark, 'object', 'bookmarks') || !$bookmark->canEdit()) {
register_error(elgg_echo('bookmarks:unknown_bookmark'));
forward(REFERRER);
}