Merge commit '74b3b6c798d1f137947e80df8eefb7412e70febd' into glitch-soc/merge-upstream
This commit is contained in:
commit
1b92ac0729
41 files changed
+593
-156
No files matched your search
@@ -11,7 +11,7 @@ class Api::V1Alpha::CollectionItemsController < Api::BaseController
|
||||
|
||||
before_action :set_collection
|
||||
before_action :set_account, only: [:create]
|
||||
before_action :set_collection_item, only: [:destroy]
|
||||
before_action :set_collection_item, only: [:destroy, :revoke]
|
||||
|
||||
after_action :verify_authorized
|
||||
|
||||
@@ -32,6 +32,14 @@ class Api::V1Alpha::CollectionItemsController < Api::BaseController
|
||||
head 200
|
||||
end
|
||||
|
||||
def revoke
|
||||
authorize @collection_item, :revoke?
|
||||
|
||||
RevokeCollectionItemService.new.call(@collection_item)
|
||||
|
||||
head 200
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_collection
|
||||
|
||||
Reference in new issue
Block a user