ssh keys controller: skip find_user method
This commit is contained in:
parent
db5b585547
commit
9a077ac77f
|
@ -1,6 +1,7 @@
|
||||||
class Users::SshKeysController < Users::BaseController
|
class Users::SshKeysController < Users::BaseController
|
||||||
before_action :set_current_user
|
before_action :set_current_user
|
||||||
before_action -> { authorize current_user, :update? }
|
before_action -> { authorize current_user, :update? }
|
||||||
|
skip_before_action :find_user
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@ssh_key = SshKey.new
|
@ssh_key = SshKey.new
|
||||||
|
|
Loading…
Reference in New Issue