Browse Source

fix category widget when using articles

master
zotlabs 1 year ago
parent
commit
c7476a1d96
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      Zotlabs/Widget/Categories.php

+ 1
- 2
Zotlabs/Widget/Categories.php View File

@@ -18,10 +18,9 @@ class Categories {

$articles = ((array_key_exists('articles',$arr) && $arr['articles']) ? true : false);

if(($articles) && (! feature_enabled(App::$profile['profile_uid'],'articles')))
if(($articles) && (! Apps::system_app_installed(App::$profile['profile_uid'],'Articles')))
return '';


if((! App::$profile['profile_uid'])
|| (! perm_is_allowed(App::$profile['profile_uid'],get_observer_hash(),(($cards || $articles) ? 'view_pages' : 'view_stream')))) {
return '';


Loading…
Cancel
Save