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
[ticket/12230] Disable newly registered group when post limit is set to 0 #3659
Conversation
} | ||
$db->sql_freeresult($result); | ||
|
||
if (sizeof($user_ids)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!empty
Not sure this behaviour is desired. Any reviews please make sure to have read #3553 (comment) |
@bantu which behaviour would you have instead? |
bump? |
bump? :/ |
@bantu pls answer the above question ;) |
I believe you can find his answer in his linked comment above, since it is basically the same problem: If you remove all users from the newly registered group, this makes it hard on Administrators who simply want to manage the users in that group themselves, instead of having it automatically managed. They will have to re-add all users they want in this group. In that sense, the 0 would only disable the automatic adding and removing feature, not remove all users from the group as well. I think you could argue for both cases, because a lot of administrators setting this to 0 will probably want to remove all users from that group at the same time, but whatever the choice is, administrators should be informed about this behaviour in the description. |
I think that most admins will expect the newly introduced behavior for setting this to 0. The explain string should however clearly state that this will remove all members from the newly registered users group. |
I'd better just add a conditional around https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/phpbb/session.php#L1586-L1589 to carry out removing user from the |
I agree.
I think removing the users after disabling is changing the default behaviour far more than removing them all at once. In that case, the newly registered users group cannot be used by the administrator at all, while now, they can simply manage users in that group themselves. |
This is just how it works currently for the limit >0. And it can work same way for the limit = 0.
Why is that? |
Because users that are manually added to the group by the administrator are immediately removed again automatically whenever they log in if the setting is 0. |
They won't be removed because P.S. I guess it's as simple as removing |
Please see PR #3553. I suggested a similar change there. |
@Elsensee what's up here? |
@Nicofuma to be honest, I don't really know. There is also a patch #3553 which fixes this as @rxu has described it. Maybe our new TL @marc1706 has anything to say about this? |
@Elsensee I think I actually clearly stated the expected behavior here? Feel free to chat me up on IRC to clear anything up |
|
Reopened as I think you clicked on close and comment by accident? |
bump? |
Bump? |
[ticket/12230] Disable newly registered group when post limit is set to 0
Old PR: #3553
Older PR: #3536
Now all users are just removed from the group when the limit is set to 0. :)
PHPBB3-12230