]> git.mxchange.org Git - friendica.git/blobdiff - mod/photo.php
Renaming functions + moving functions from security to Model/Item and BaseModule...
[friendica.git] / mod / photo.php
index 3a0a199d8c5b4448ade17ce8c9be550bf5a60561..083b7cfc99bdd2a4076fd8e9f9fbb8003930294e 100644 (file)
@@ -110,7 +110,7 @@ function photo_init(App $a)
                        intval($resolution)
                );
                if (DBA::isResult($r)) {
-                       $sql_extra = Security::permissions_sql($r[0]['uid']);
+                       $sql_extra = Security::getPermissionsSQLByUserId($r[0]['uid']);
 
                        // Now we'll see if we can access the photo
                        $r = q("SELECT * FROM `photo` WHERE `resource-id` = '%s' AND `scale` <= %d $sql_extra ORDER BY scale DESC LIMIT 1",