Added portal permissions -- It is now possible to show the Portal only to the users and groups we want to

This commit is contained in:
Marc Alexander
2010-12-02 17:24:07 +00:00
parent ff9e9c6061
commit b2a591bb35
6 changed files with 17 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ $user->setup('mods/portal');
* Make sure we do an isset first,
* else we will get errors if someone uninstalls the portal and forgets to remove portal.php
*/
if (!isset($config['board3_enable']) || !$config['board3_enable'])
if (!isset($config['board3_enable']) || !$config['board3_enable'] || !$auth->acl_get('u_view_portal'))
{
redirect(reapply_sid($phpbb_root_path . 'index.' . $phpEx));
}