Skip to content

Commit

Permalink
fixed: show error message on edit permissions fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Apr 11, 2024
1 parent 0ac3446 commit a050637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/static/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
});

if (!$entity instanceof \StaticPage || !$entity->canEdit()) {
return elgg_error_response();
return elgg_error_response(elgg_echo('actionunauthorized'));
}
}

Expand Down

0 comments on commit a050637

Please sign in to comment.