diff options
author | Ilja <ilja@ilja.space> | 2022-07-01 09:54:05 +0200 |
---|---|---|
committer | Ilja <ilja@ilja.space> | 2022-07-01 10:28:09 +0200 |
commit | 37fdf148b0963b62ab746a8ece2aacf893ba8934 (patch) | |
tree | 4acefdeb5c4b75bf7d89bb40c21039db37d385fe /lib/pleroma/user.ex | |
parent | 4e4eb81749076ada5692b92061c77a72832a9cc8 (diff) |
Rename privilege tags
I first focussed on getting things working
Now that they do and we know what tags there are, I put some thought in providing better names
I use the form <what_it_controls>_<what_it_allows_you_to_do>
:statuses_read => :messages_read
:status_delete => :messages_delete
:user_read => :users_read
:user_deletion => :users_delete
:user_activation => :users_manage_activation_state
:user_invite => :users_manage_invites
:user_tag => :users_manage_tags
:user_credentials => :users_manage_credentials
:report_handle => :reports_manage_reports
:emoji_management => :emoji_manage_emoji
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r-- | lib/pleroma/user.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index fb2fade42..11c4d0684 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -326,7 +326,7 @@ defmodule Pleroma.User do end def visible_for(%User{} = user, for_user) do - if privileged?(for_user, :user_activation) do + if privileged?(for_user, :users_manage_activation_state) do :visible else visible_account_status(user) |