removed users controller

This commit is contained in:
2458773093
2019-07-16 15:53:56 +03:00
parent 17a6756bcb
commit 2558251cc5
3 changed files with 103 additions and 0 deletions

View File

@@ -42,6 +42,18 @@ class GroupPolicy < ApplicationPolicy
is_group_admin?
end
def show_removed_accounts?
is_group_admin?
end
def create_removed_account?
is_group_admin?
end
def destroy_removed_account?
is_group_admin?
end
private
def is_member?