Skip to content

Draft: Make moderation menu show for moderators

Moderators don't currently see the moderation menu. Here I change that. Some things still left to figure out, though.

  • Deleting users gives a 403, so the menu doesn't fully work yet. Either this should be hidden for mods, or it should be made possible for them. Ideal would be if things can be automatically shown/hidden by asking the BE what actions are possible, but I don't know if such a thing already exists.
  • I'm checking if the user has roles admin or moderator. In BE we have a function User.superuser?(user), maybe something similar could be done for FE?

Merge request reports

Loading