aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Website_portation_tools.php
blob: 1cf3bb78a7163f7cc9cbb41d56ad43677b6be718 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace Zotlabs\Widget;


class Website_portation_tools {

	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();
	}
}