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 83e9d44 commit 4d77bea
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 4d77bea

Please sign in to comment.