Skip to content

Commit

Permalink
chore: use Entity->canWriteToContainer instead of can_write_to_container
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Nov 3, 2016
1 parent 60bacff commit ebb8220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/default/resources/static/all.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
$filter = elgg_view('page/layouts/elements/filter');
}

if (can_write_to_container(elgg_get_logged_in_user_guid(), $site->getGUID(), 'object', 'static')) {
if ($site->canWriteToContainer(elgg_get_logged_in_user_guid(), 'object', 'static')) {
elgg_register_title_button();
}

Expand Down

0 comments on commit ebb8220

Please sign in to comment.