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

[feature] Admin role permission bitmask #3115

Closed
GeopJr opened this issue Jul 18, 2024 · 2 comments · Fixed by #3136
Closed

[feature] Admin role permission bitmask #3115

GeopJr opened this issue Jul 18, 2024 · 2 comments · Fixed by #3136
Assignees
Labels
enhancement New feature or request frontend-api Backend requirement for Frontend stuff moderation Moderation UX and APIs, domain allow/deny, spam filtering

Comments

@GeopJr
Copy link

GeopJr commented Jul 18, 2024

Is your feature request related to a problem ?

This is extremely low priority.

Mastodon 4.0.0 added role permissions, a bitmask of individual permissions the role has. Apps that have admin tools, can utilize them to conditionally show them, e.g. a Moderator might not have permission to block federation and a client could just not show them the block federation tools at all or provide a helpful message rather than let it fail

https://docs.joinmastodon.org/entities/Role/#permissions

Describe the solution you'd like.

Since, from my understanding, GoToSocial has a preset of roles, admins should probably just have the 'Administrator' permission and mods should have the individual ones that best describe what they have access to

Describe alternatives you've considered.

From my side, I can skip the permission checks or use the role names since they are static

Additional context.

This is very niche and experimental and should really be treated as very low priority, as nobody but a handful of clients have admin tools at all (Though I will open more issues for the admin API in the future :3)

@GeopJr GeopJr added the enhancement New feature or request label Jul 18, 2024
@VyrCossont
Copy link
Contributor

Relevant for Mastodon compatibility: it has a role attribute on a subtype of Account (documented) and a roles attribute on Account proper (undocumented).

@VyrCossont
Copy link
Contributor

Another thing I learned today is that GtS's moderator role doesn't appear to do anything other than make the account eligible to be listed as an instance contact. This will probably change in the future.

@VyrCossont VyrCossont self-assigned this Jul 22, 2024
@VyrCossont VyrCossont added frontend-api Backend requirement for Frontend stuff moderation Moderation UX and APIs, domain allow/deny, spam filtering labels Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend-api Backend requirement for Frontend stuff moderation Moderation UX and APIs, domain allow/deny, spam filtering
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants