aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-02 15:08:11 -0800
committerfriendica <info@friendica.com>2013-02-02 15:08:11 -0800
commit3eacd7aab37421c40a5647aee9acdbc58615ab4e (patch)
tree7c26e4eefe8b15827b6fb80c7ac6e3cad246cd06 /mod
parent17cf6c41dbe0d18ca73ba1f929128162033c7c90 (diff)
downloadvolse-hubzilla-3eacd7aab37421c40a5647aee9acdbc58615ab4e.tar.gz
volse-hubzilla-3eacd7aab37421c40a5647aee9acdbc58615ab4e.tar.bz2
volse-hubzilla-3eacd7aab37421c40a5647aee9acdbc58615ab4e.zip
debugging the photo api
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php4
-rw-r--r--mod/photos.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/network.php b/mod/network.php
index 4176f0047..cca69dc52 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -707,8 +707,8 @@ function network_content(&$a, $update = 0, $load = false) {
if(! $update)
$o .= alt_pager($a,count($items));
- logger('parent dba_timer: ' . sprintf('%01.4f',$first - $start));
- logger('child dba_timer: ' . sprintf('%01.4f',$second - $first));
+// logger('parent dba_timer: ' . sprintf('%01.4f',$first - $start));
+// logger('child dba_timer: ' . sprintf('%01.4f',$second - $first));
return $o;
diff --git a/mod/photos.php b/mod/photos.php
index 101cb20b2..e74ced67c 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -65,7 +65,7 @@ function photos_post(&$a) {
$page_owner_uid = $a->data['channel']['channel_id'];
- if($a->perms['post_photos'])
+ if(perm_is_allowed($page_owner_uid,get_observer_hash(),'post_photos'))
$can_post = true;
if(! $can_post) {