Uploaded image for project: 'Integrated'
  1. Integrated
  2. INTEGRATED-703

Author of an article should always be able to read (see, not write) his articles

    Details

    • Type: Story
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: integrated-0.5
    • Component/s: None
    • Labels:
      None

      Description

      So, when an author makes an item, he is the creator and should be able to see in what workflow steps his article is. He does not have writing right, only reading rights.

      Required changes:

      • integrated\content-bundle\Resources\config\solr\content.xml: only the author names are currently indexed in Solr, the ID's need to be added in a new field
      • ContentController in ContentBundle: allow document with the current user as author ($user->getRelation() to get the relation object from the logged in user, please note that the relation link is optional, so not all users will have this filter) to be viewed in the content overview (screenshot-1)
      • integrated\workflow-bundle\Security\WorkflowVoter.php --> find out if the current user is author, if so allow view (note: the Author is only available when the document is instanceof Article, other content items do not have an author field)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcelvanoene Marcel van Oene
              Client:
              Marijn Otte
              Code reviewer:
              Marijn Otte
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Draw.io Diagrams

                  OTM