Skip to content

Commit

Permalink
Hide news permissions when disabled
Browse files Browse the repository at this point in the history
Fixes #16957
  • Loading branch information
vboctor committed Nov 4, 2014
1 parent db9fddd commit 4b2d30a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions adm_permissions_report.php
Expand Up @@ -76,10 +76,12 @@ function get_section_end() {
echo '<br /><br />';

# News
echo get_section_begin_apr( lang_get( 'news' ) );
echo get_capability_row( lang_get( 'view_private_news' ), config_get( 'private_news_threshold' ) );
echo get_capability_row( lang_get( 'manage_news' ), config_get( 'manage_news_threshold' ) );
echo get_section_end();
if( config_get( 'news_enabled' ) == ON ) {
echo get_section_begin_apr( lang_get( 'news' ) );
echo get_capability_row( lang_get( 'view_private_news' ), config_get( 'private_news_threshold' ) );
echo get_capability_row( lang_get( 'manage_news' ), config_get( 'manage_news_threshold' ) );
echo get_section_end();
}

# Attachments
if( config_get( 'allow_file_upload' ) == ON ) {
Expand Down

0 comments on commit 4b2d30a

Please sign in to comment.