provide get_server_role() to abstract different roles and capabilities

This commit is contained in:
redmatrix
2016-02-07 18:11:10 -08:00
parent ec950de205
commit d8e6fd5df0
4 changed files with 9 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ function import_account(&$a, $account_id) {
notice($t);
}
if(array_key_exists('server_role',$data['compatibility'])
&& $data['compatibility']['server_role'] != UNO) {
&& $data['compatibility']['server_role'] != get_server_role()) {
notice( t('Server platform is not compatible. Operation not permitted.') . EOL);
return;
}