diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-08-23 06:57:10 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-08-23 06:57:10 -0400 |
commit | 420aa4bc44a2fdf707b3964582258809f978ea2d (patch) | |
tree | c6def258a9311d513d6e1e89918c2ec0d17114f7 /include/plugin.php | |
parent | 305e0538d293ff4ad72f30b11998ae3b06efa4ea (diff) | |
parent | 1e6a491400eaa01aeb2991d4b38e0255499d8b67 (diff) | |
download | volse-hubzilla-420aa4bc44a2fdf707b3964582258809f978ea2d.tar.gz volse-hubzilla-420aa4bc44a2fdf707b3964582258809f978ea2d.tar.bz2 volse-hubzilla-420aa4bc44a2fdf707b3964582258809f978ea2d.zip |
Merge remote-tracking branch 'upstream/dev' into website-export
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-x | include/plugin.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/plugin.php b/include/plugin.php index cb206d944..663d17959 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -404,6 +404,18 @@ function check_plugin_versions($info) { return false; } } + if(array_key_exists('serverroles',$info)) { + $role = \Zotlabs\Lib\System::get_server_role(); + if(! ( + stristr($info['serverroles'],'*') + || stristr($info['serverroles'],'any') + || stristr($info['serverroles'],$role))) { + logger('serverrole limit: ' . $info['name'],LOGGER_NORMAL,LOG_WARNING); + return false; + + } + } + if(array_key_exists('requires',$info)) { $arr = explode(',',$info['requires']); |