mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 13:55:17 +00:00
28 lines
578 B
PHP
28 lines
578 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Widget;
|
|
|
|
use App;
|
|
|
|
class Website_portation_tools
|
|
{
|
|
|
|
public function widget($arr)
|
|
{
|
|
|
|
// mod menu doesn't load a profile. For any modules which load a profile, check it.
|
|
// otherwise local_channel() is sufficient for permissions.
|
|
|
|
if (App::$profile['profile_uid']) {
|
|
if ((App::$profile['profile_uid'] != local_channel()) && (!App::$is_sys)) {
|
|
return '';
|
|
}
|
|
}
|
|
|
|
if (!local_channel()) {
|
|
return '';
|
|
}
|
|
|
|
return website_portation_tools();
|
|
}
|
|
}
|