mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
adjust authorize
This commit is contained in:
1 parent
9b25b8538e
commit
65bcbd7737
1 file changed
+1
-1
@@ -4,7 +4,7 @@ class SubmissionsUnarchiveController < ApplicationController
|
|||||||
load_and_authorize_resource :submission
|
load_and_authorize_resource :submission
|
||||||
|
|
||||||
def create
|
def create
|
||||||
authorize!(:update, @submission)
|
authorize!(:destroy, @submission)
|
||||||
|
|
||||||
@submission.update!(archived_at: nil)
|
@submission.update!(archived_at: nil)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user