this post was submitted on 16 May 2025
43 points (100.0% liked)

PieFed Meta

1189 readers
48 users here now

Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.

Wiki

founded 2 years ago
MODERATORS
 

Sometimes there are people keen to help run an instance but you don't know them well enough to give them ALL the keys. PieFed lets you control which parts of the admin area you want a 'Staff' role to have access to and then assign accounts to that role.

For now there are just two roles but it would be trivial to add more if there is demand for it (and pretty easy to make a UI to let an admin define as many custom roles as they want). For example, a "Super moderator" might have the "administer all communities" permission only. Can you think of any other variations of the Staff role?

you are viewing a single comment's thread
view the rest of the comments
[–] rimu@piefed.social 8 points 1 month ago* (last edited 1 month ago)

The permissions system in PieFed is greatly inspired by Drupal , which I spent too many years building websites with. It even uses the same function call user_access('administer all communities') to check if the current user can do something.

Users have one or more roles. Each role has a collection of permissions that have been enabled for it. When a user tries to access a page PieFed doesn't check which role they have, it checks if any of their roles have the necessary permission. This is very flexible and extensible - to limit access to an area the admin can either remove the permission from a role OR remove a user from a role. It's simple for developers too - just call user_access() and leave it to the instance admin to decide which roles can access the functionality.