Plume/templates
Ana Gelez 309e1200d0 Make a distinction between moderators and admins (#619)
* Make a distinction between moderators and admins

And rework the user list in the moderation interface, to be able to run the same action on many users,
and to have a huge list of actions whithout loosing space.

* Make user's role an enum + make it impossible for a moderator to escalate privileges

With the help of diesel-derive-enum (maybe it could be used in other places too?)

Also, moderators are still able to grant or revoke moderation rights to other people, but maybe only admins should be able to do it?

* Cargo fmt

* copy/pasting is bad

* Remove diesel-derive-enum and use an integer instead

It was not compatible with both Postgres and SQlite, because for one it generated a schema
with the "User_role" type, but for the other it was "Text"…

* Reset translations

* Use an enum to avoid magic numbers + fix the tests

* Reset translations

* Fix down.sql
2019-09-13 12:28:36 +02:00
..
blogs Replace the input! macro with an Input builder (#646) 2019-08-27 16:50:24 +02:00
errors Update rocket_i18n and add gettext_macros (#431) 2019-02-02 15:23:50 +01:00
instance Make a distinction between moderators and admins (#619) 2019-09-13 12:28:36 +02:00
medias Replace the input! macro with an Input builder (#646) 2019-08-27 16:50:24 +02:00
notifications Update rocket_i18n and add gettext_macros (#431) 2019-02-02 15:23:50 +01:00
partials WIP - initial RTL support #575 (#577) 2019-07-11 09:34:27 +02:00
posts Replace the input! macro with an Input builder (#646) 2019-08-27 16:50:24 +02:00
search Replace the input! macro with an Input builder (#646) 2019-08-27 16:50:24 +02:00
session Replace the input! macro with an Input builder (#646) 2019-08-27 16:50:24 +02:00
tags Update rocket_i18n and add gettext_macros (#431) 2019-02-02 15:23:50 +01:00
users Make a distinction between moderators and admins (#619) 2019-09-13 12:28:36 +02:00
base.rs.html Make a distinction between moderators and admins (#619) 2019-09-13 12:28:36 +02:00
remote_interact_base.rs.html Replace the input! macro with an Input builder (#646) 2019-08-27 16:50:24 +02:00