-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force login #906
Comments
could be implemented for only specific forum or category as well? |
No, this is meant to be a board wide setting. |
Done. |
Ohh, I see. bad, because now you cannot force user to login/register for view specific forum - this feature has phpBB for example... you can only set password |
@CU8ER, that's already possible since 1.6 or even earlier.. Just change Forum Permissions. |
@Destroy666x - OK, I have to find this option, sorry if I am wrong |
Just found this: if($mybb->usergroup['canview'] != 1)
{
// Check pages allowable even when not allowed to view board
if(defined('ALLOWABLE_PAGE'))
{
if(is_string(ALLOWABLE_PAGE))
{
$allowable_actions = explode(',', ALLOWABLE_PAGE);
if(!in_array($mybb->get_input('action'), $allowable_actions))
{
error_no_permission();
}
unset($allowable_actions);
}
else if(ALLOWABLE_PAGE !== 1)
{
error_no_permission();
}
}
else
{
error_no_permission();
}
} Is not that enough? |
@Sama34, I thought it can be done with current usergroup permissions too. No for "Can view board?" in Guests group permissions works just fine for me in 1.6. So it seems to be a duplicate. |
@PaulBender |
Also, this seems to work fine for me. |
Yes, it does works. |
Add a setting that allows Admins to force a user to register/login in order to view the board.
The text was updated successfully, but these errors were encountered: