mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 06:35:18 +00:00
19 lines
317 B
PHP
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;
|
|
}
|
|
}
|