Moves organization verification to Admin from Moderation
This commit is contained in:
19
app/controllers/admin/organizations_controller.rb
Normal file
19
app/controllers/admin/organizations_controller.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class Admin::OrganizationsController < Admin::BaseController
|
||||
|
||||
load_and_authorize_resource
|
||||
|
||||
def index
|
||||
@organizations = @organizations.includes(:user).order(:name, 'users.email')
|
||||
end
|
||||
|
||||
def verify
|
||||
@organization.verify
|
||||
redirect_to action: :index
|
||||
end
|
||||
|
||||
def reject
|
||||
@organization.reject
|
||||
redirect_to action: :index
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user