1
0
mirror of https://github.com/flarum/core.git synced 2025-08-28 18:40:46 +02:00

feat(permission): add the no one permission

One thing that has been very frustrating while developing extensions is
that you cannot easily create a feature that you would like to allow
disabling through the permission grid.

This Proof of Concept PR is a question, whether I'm the only one running
into this limitation for Flarum.

It does:

- introduce a fake permission, similar to Guest
- removes the whole permission entry from the db when selected
- restores the permission visually on the frontend

It has to:

- confirm admins also cannot use the permission if selected
- not break v1.x functionality or be moved to v2.0
- appeal to core and community
This commit is contained in:
Daniël Klabbers
2023-03-26 10:03:09 +02:00
parent bddc9d96f2
commit 7dcbbf29ab
11 changed files with 69177 additions and 1123 deletions

2387
yarn.lock

File diff suppressed because it is too large Load Diff