Skip to content

Commit 2f5f83c

Browse files
Merge pull request #15223 from nextcloud/feat/share-review-access-check-event
docs(events): Add ShareReviewAccessCheckEvent
2 parents cfeaa88 + fc470a5 commit 2f5f83c

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

developer_manual/basics/_available_events_ocp.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,27 @@ Event that allows to register a feature policy header to a request.
823823
.. versionadded:: 19
824824

825825

826+
``OCP\Share\ShareReview\Events\ShareReviewAccessCheckEvent``
827+
************************************************************
828+
829+
.. versionadded:: 34.0.2
830+
831+
Authorization gate for deleting an app-managed share through a share-review app. Dispatched by the app that owns
832+
the share (its ``OCP\Share\ShareReview\IShareReviewSource`` implementation) at the beginning of ``deleteShare()``,
833+
before anything is deleted. The share-review app listens to this event and answers with ``grantAccess()`` or
834+
``denyAccess()`` depending on whether the current user is an authorized share-review operator; apps that merely
835+
expose shares must not listen to it. The event is default-deny: if no listener responds, the share must not be
836+
deleted. Once denied, further grants are ignored and event propagation is stopped.
837+
838+
``OCP\Share\ShareReview\RegisterShareReviewSourceEvent``
839+
********************************************************
840+
841+
.. versionadded:: 34.0.2
842+
843+
Event dispatched by a share-review app to collect share sources from other apps. Listeners register the class name
844+
of their ``OCP\Share\ShareReview\IShareReviewSource`` implementation, whose ``getShares()`` method returns a list of
845+
``OCP\Share\ShareReview\ShareReviewEntry`` objects.
846+
826847
``OCP\SpeechToText\Events\TranscriptionFailedEvent``
827848
****************************************************
828849

0 commit comments

Comments
 (0)