diff options
author | friendica <info@friendica.com> | 2014-03-09 07:29:51 +1100 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-09 07:29:51 +1100 |
commit | 56b50bf1135b9f62053bedaaf5d22ab246183687 (patch) | |
tree | f4508999b62dd093dc1f5b566393de4987391c4f | |
parent | 22c0f381ab4dd566ad2dc7744aaf2edf902147a2 (diff) | |
parent | d9fd2a20c87d389d93005de6bce56c6c75311977 (diff) | |
download | volse-hubzilla-56b50bf1135b9f62053bedaaf5d22ab246183687.tar.gz volse-hubzilla-56b50bf1135b9f62053bedaaf5d22ab246183687.tar.bz2 volse-hubzilla-56b50bf1135b9f62053bedaaf5d22ab246183687.zip |
Merge pull request #359 from beardy-unixer/master
is_developer() for those awkward "Don't touch this yet unless
-rwxr-xr-x | boot.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -491,7 +491,7 @@ define ( 'ACCOUNT_PENDING', 0x0010 ); define ( 'ACCOUNT_ROLE_ALLOWCODE', 0x0001 ); define ( 'ACCOUNT_ROLE_SYSTEM', 0x0002 ); - +define ( 'ACCOUNT_ROLE_DEVELOPER', 0x0004 ); define ( 'ACCOUNT_ROLE_ADMIN', 0x1000 ); /** @@ -1704,6 +1704,15 @@ function is_site_admin() { return false; } +function is_developer() { + $a = get_app(); + if((intval($_SESSION['authenticated'])) + && (is_array($a->account)) + && ($a->account['account_roles'] & ACCOUNT_ROLE_DEVELOPER)) + return true; + return false; +} + function load_contact_links($uid) { |