]> git.mxchange.org Git - friendica.git/blobdiff - mod/videos.php
New function "isAuthenticated"
[friendica.git] / mod / videos.php
index fd40e79c90dcf6c390b18620315ff0d06c7dbe58..48027a603e9450711b8b89d1dea4303740c1f58c 100644 (file)
@@ -23,7 +23,7 @@ use Friendica\Util\Security;
 
 function videos_init(App $a)
 {
-       if (Config::get('system', 'block_public') && !local_user() && !remote_user()) {
+       if (Config::get('system', 'block_public') && !Session::isAuthenticated()) {
                return;
        }
 
@@ -111,7 +111,7 @@ function videos_content(App $a)
        // videos/name/video/xxxxx/edit
 
 
-       if (Config::get('system', 'block_public') && !local_user() && !remote_user()) {
+       if (Config::get('system', 'block_public') && !Session::isAuthenticated()) {
                notice(L10n::t('Public access denied.') . EOL);
                return;
        }