mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 07:35:21 +00:00
19 lines
364 B
PHP
19 lines
364 B
PHP
<?php
|
|
|
|
namespace Code\Widget;
|
|
|
|
use App;
|
|
|
|
class Design_tools implements WidgetInterface
|
|
{
|
|
|
|
public function widget(array $arguments): string
|
|
{
|
|
|
|
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;
|
|
}
|
|
}
|