fix: project setting permission control

This commit is contained in:
2021-11-19 14:56:20 +08:00
parent 1f989d0a37
commit ddb826733b
2 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ class MembersController < ApplicationController
before_action :load_project
before_action :find_user_with_id, only: %i[create remove change_role]
before_action :check_user_profile_completed, only: [:create]
before_action :operate!, except: %i[index]
before_action :operate!
before_action :check_member_exists!, only: %i[create]
before_action :check_member_not_exists!, only: %i[remove change_role]