mirror of
https://github.com/postalserver/postal.git
synced 2026-10-18 18:26:06 +00:00
refactor: user management
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
class OrganizationsController < ApplicationController
|
||||
|
||||
before_action :admin_required, :only => [:new, :create]
|
||||
before_action :require_organization_admin, :only => [:edit, :update, :delete, :destroy]
|
||||
before_action :admin_required, :only => [:new, :create, :delete, :destroy]
|
||||
|
||||
def index
|
||||
if current_user.admin?
|
||||
|
||||
Reference in New Issue
Block a user