diff options
author | Yorhel <git@yorhel.nl> | 2020-04-15 11:53:38 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-04-15 11:53:40 +0200 |
commit | be5ee198129301d84912380ed8d1636ad32f68b3 (patch) | |
tree | d02840ee97c05818556f886e69bcc5783b44c229 /lib/VNWeb/Elm.pm | |
parent | 5a3a446b0530632942c577edbf10e9c7c2fb6fa9 (diff) |
SQL: Split "perm" column into multiple booleans
This simplifies several actions and makes permission checks more
obvious. This is also yack shaving for another feature I've been
planning to add: boardmods should be able to set other users' "board"
permission, tagmods for tags, etc. So that partial user bans don't need
the full "usermod" permission.
Diffstat (limited to 'lib/VNWeb/Elm.pm')
-rw-r--r-- | lib/VNWeb/Elm.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/VNWeb/Elm.pm b/lib/VNWeb/Elm.pm index 70871bdd..d6d8d862 100644 --- a/lib/VNWeb/Elm.pm +++ b/lib/VNWeb/Elm.pm @@ -351,7 +351,6 @@ sub write_types { $data .= def urlStatic => String => string config->{url_static}; $data .= def adminEMail => String => string config->{admin_email}; - $data .= def userPerms => 'List (Int, String)' => list map tuple(VNWeb::Auth::listPerms->{$_}, string $_), sort keys VNWeb::Auth::listPerms->%*; $data .= def skins => 'List (String, String)' => list map tuple(string $_, string tuwf->{skins}{$_}[0]), sort { tuwf->{skins}{$a}[0] cmp tuwf->{skins}{$b}[0] } keys tuwf->{skins}->%*; |