Page MenuHomePhabricator

🟦️ Use the newly created `PermissionChecker` in the AddItemStatement use case
Open, Needs TriagePublic

Description

  • use PermissionChecker (T311154) in the use case after calling the revisionMetadataRetriever
  • return error response if not allowed
  • add e2e test with protected item

Respond with the same kind of error that the MediaWiki framework responds with when then route handler's needsWriteAccess check fails.

Event Timeline

Jakob_WMDE renamed this task from 🟦️ Implement `PermissionChecker` to check if the user can edit the item to 🟦️ Use the newly created `PermissionChecker` in the AddItemStatement use case.Thu, Jun 23, 2:05 PM