aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index a44d8298f..b0c7a6197 100644
--- a/boot.php
+++ b/boot.php
@@ -2736,3 +2736,11 @@ function parse_xml_string($s) {
libxml_clear_errors();
return $x;
}}
+
+if(! function_exists('is_site_admin')) {
+function is_site_admin() {
+ $a = get_app();
+ if(local_user() && x($a->user,'email') && x($a->config,'admin_email') && ($a->user['email'] === $a->config['admin_email']))
+ return true;
+ return false;
+}} \ No newline at end of file