Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30385

Cannot remove draft if remove policy is based on object state and subtree limitation

    XMLWordPrintable

Details

    Description

      Login as Admin.

      Create Folder called ‘Site1’ under ` eZ Platform`.

      Create Object State Group ‘Removal Lock’ with identifier ‘removal_lock’.
      Add states ‘Unlocked’, ‘removal_lock_unlocked’ and ‘Locked’, ‘removal_lock_locked’ states.

      Create Role ‘Site Owner’ with the following policies:
      Content -> Read -> Location: /eZ Platform , /Media , /Users
      User -> Login -> SiteAccess: site, admin

      Create Role ‘Site Editor’ with the following policies:
      Content -> Create -> Content Type: Article
      Content -> Read -> None
      Content -> Edit -> Content Type: Article
      Content -> Versionread -> None
      Content -> Versionremove -> None
      Content -> Remove -> State: Removal Locked:Unlocked

      Create user group ‘Site Editors’
      Assign role ` Site Owner` to the create `Site Editors` group
      Create a user ‘User1’ in ‘Site Editors’ user group
      Assign ‘Site Editor’ role to ‘User1’ with a subtree limitation to the ‘Site1’ folder

      Login as User
      Navigate to the `Site1` folder.
      Create an article in the `Site1` folder.
      Save then select Delete from the right toolbar.

      An exception will be thrown: User does not have access to 'remove' 'content' with: contentId '55'

      Attachments

        Activity

          People

            andrew.longosz@ibexa.co Andrew Longosz
            feb52ca2-9206-4fa9-818f-2c4dcf3f42b0@accounts.ibexa.co Douglas Hammond
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: