aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-18 16:33:31 -0700
committerfriendica <info@friendica.com>2014-09-18 16:33:31 -0700
commitc824e426e2816fd79f0acfec0bb9f23630bff26d (patch)
treed6d4660d8ce5d0935e74dc0886efd4907c09f230 /include/security.php
parentd4759a5883e6776a2022b204b1af84e454de7f67 (diff)
parentcaabc69e08b41defde120e903f05661e4daab8e6 (diff)
downloadvolse-hubzilla-c824e426e2816fd79f0acfec0bb9f23630bff26d.tar.gz
volse-hubzilla-c824e426e2816fd79f0acfec0bb9f23630bff26d.tar.bz2
volse-hubzilla-c824e426e2816fd79f0acfec0bb9f23630bff26d.zip
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/security.php b/include/security.php
index 0f2edc708..e83cc7061 100644
--- a/include/security.php
+++ b/include/security.php
@@ -82,6 +82,19 @@ function change_channel($change_channel) {
intval(PAGE_REMOVED)
);
+ // It's not there. Is this an administrator, and is this the sys channel?
+ if (is_developer()) {
+ if (! $r) {
+ if (is_site_admin()) {
+ $r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel_id = %d and ( channel_pageflags & %d) and not (channel_pageflags & %d ) limit 1",
+ intval($change_channel),
+ intval(PAGE_SYSTEM),
+ intval(PAGE_REMOVED)
+ );
+ }
+ }
+ }
+
if($r) {
$hash = $r[0]['channel_hash'];
$_SESSION['uid'] = intval($r[0]['channel_id']);