aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-08 12:40:46 -0800
committerfriendica <info@friendica.com>2014-03-08 12:40:46 -0800
commit6a5c2fb9da0fcb549a049bb460a146da6a572dee (patch)
treea43a3a52d1b07b77002c80effe488a0a8e5a2170 /boot.php
parentaf22aeb55748bd0aa76db99a1e8a3fb84a1b85e1 (diff)
parent56b50bf1135b9f62053bedaaf5d22ab246183687 (diff)
downloadvolse-hubzilla-6a5c2fb9da0fcb549a049bb460a146da6a572dee.tar.gz
volse-hubzilla-6a5c2fb9da0fcb549a049bb460a146da6a572dee.tar.bz2
volse-hubzilla-6a5c2fb9da0fcb549a049bb460a146da6a572dee.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index e368896ca..a5a48b2bf 100755
--- a/boot.php
+++ b/boot.php
@@ -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) {