From b4c4b48a8c0258ff266c523488aa169a1b5ea0f3 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Fri, 13 Jul 2018 17:52:31 +0200 Subject: Allow users to set a status This can be done trough the API for the current user, or on the profile page. --- app/policies/user_policy.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/policies/user_policy.rb') diff --git a/app/policies/user_policy.rb b/app/policies/user_policy.rb index b5717029354..e1efd84e510 100644 --- a/app/policies/user_policy.rb +++ b/app/policies/user_policy.rb @@ -16,6 +16,7 @@ class UserPolicy < BasePolicy rule { ~subject_ghost & (user_is_self | admin) }.policy do enable :destroy_user enable :update_user + enable :update_user_status end rule { default }.enable :read_user_profile -- cgit v1.2.3