Skip to content
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

Blacklist/Whitelist #116

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

Noordfrees
Copy link
Member

@Noordfrees Noordfrees commented Nov 27, 2021

Closes #97

This implements a way to selectively forbid a user to upload add-ons, upload screenshots, write and edit comments, or log in to the server; or to mark them as trusted to automatically verify their new add-ons and/or carry over the verification and quality status when upgrading an add-on.
More fine-grained controls (i.e., on a per-add-on basis) can be added if we ever need them.

Users who have deleted themselves or who were deleted or inactivated can no longer log in.

Fixes the bug from https://www.widelands.org/forum/post/38365/.


To update your local testing environment:

alter table auth_user add is_active tinyint;
update auth_user set is_active=1 where is_active is null;
create table wlprofile_profile (id int primary key auto_increment, user_id int, deleted tinyint);
insert into wlprofile_profile (user_id) values (1),(2),(3),(4),(5),(6),(7),(8);
update wlprofile_profile set deleted=0 where deleted is null;

create table blackwhitelist (id int, action varchar(100), value tinyint, primary key (id,action));

@Noordfrees Noordfrees added enhancement New feature or request maintenance Shell scripts & backend stuff labels Nov 27, 2021
@Noordfrees Noordfrees self-assigned this Nov 27, 2021
README.md Outdated Show resolved Hide resolved
@Noordfrees Noordfrees added server Java code and removed maintenance Shell scripts & backend stuff labels Jan 31, 2022
Noordfrees added a commit that referenced this pull request Oct 25, 2022
@hessenfarmer
Copy link
Contributor

Test comment for the mirror bot

@bunnybot bunnybot added the ci:success CI checks succeeded label Apr 2, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels May 1, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:success CI checks succeeded enhancement New feature or request server Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Roadmap
4 participants