diff options
| -rwxr-xr-x | bit_setup_inc.php | 8 | ||||
| -rw-r--r-- | templates/menu_feed.tpl | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php index a5ea835..6e35f8b 100755 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -11,6 +11,14 @@ $gBitSystem->registerPackage( $registerHash ); if( $gBitSystem->isPackageActive( 'feed' ) ) { + if( $gBitUser->hasPermission( 'p_feed_view' )) { + $menuHash = array( + 'package_name' => FEED_PKG_NAME, + 'index_url' => FEED_PKG_URL.'index.php', + 'menu_template' => 'bitpackage:feed/menu_feed.tpl', + ); + $gBitSystem->registerAppMenu( $menuHash ); + } $menuHash = array( 'package_name' => FEED_PKG_NAME, ); diff --git a/templates/menu_feed.tpl b/templates/menu_feed.tpl index fb86ae7..a83c7eb 100644 --- a/templates/menu_feed.tpl +++ b/templates/menu_feed.tpl @@ -1,3 +1,7 @@ {strip} -{*Put user options in here, such as ability to witthold feed messages*} +<ul> + {if $gBitUser->hasPermission( 'p_feed_master' )} + <li><a class="item" href="{$smarty.const.FEED_PKG_URL}index.php">{biticon ipath="pixelmixerbasic" iname="bubble_16" iexplain="`$smarty.const.FEED_PKG_NAME` Activity" ilocation=menu}</a></li> + {/if} +</ul> {/strip} |
