Skip to content

Commit

Permalink
fixed: unable to create new widget page
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Aug 27, 2024
1 parent 61ad0ee commit 50a6ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/default/forms/widget_manager/widget_page.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$entity = elgg_extract('entity', $vars);
if (!$entity->canEdit()) {
if ($entity instanceof \WidgetPage && !$entity->canEdit()) {
throw new \Elgg\Exceptions\Http\EntityPermissionsException();
}

Expand Down

0 comments on commit 50a6ba6

Please sign in to comment.