streams/Code/Widget/Design_tools.php
2022-02-15 20:08:28 -08:00

19 lines
317 B
PHP

<?php
namespace Code\Widget;
use App;
class Design_tools
{
public function widget($arr)
{
if (perm_is_allowed(App::$profile['profile_uid'], get_observer_hash(), 'write_pages') || (App::$is_sys && is_site_admin())) {
return design_tools();
}
return EMPTY_STR;
}
}