fix category widget when using articles
This commit is contained in:
parent
b6267ec7c2
commit
c7476a1d96
@ -18,10 +18,9 @@ class Categories {
|
|||||||
|
|
||||||
$articles = ((array_key_exists('articles',$arr) && $arr['articles']) ? true : false);
|
$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 '';
|
return '';
|
||||||
|
|
||||||
|
|
||||||
if((! App::$profile['profile_uid'])
|
if((! App::$profile['profile_uid'])
|
||||||
|| (! perm_is_allowed(App::$profile['profile_uid'],get_observer_hash(),(($cards || $articles) ? 'view_pages' : 'view_stream')))) {
|
|| (! perm_is_allowed(App::$profile['profile_uid'],get_observer_hash(),(($cards || $articles) ? 'view_pages' : 'view_stream')))) {
|
||||||
return '';
|
return '';
|
||||||
|
Reference in New Issue
Block a user