Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-102573

Expose actions a user can perform for each element

    Details

      Description

      As an app developer

      I want Liferay APIs to inform me about the actions that a user is allowed to

      so that I show in the UI only the actions permitted, providing a better user experience

       

      Acceptance criteria

      Given a user with a role to just view structured content

      When the user makes a call to http://localhost:8080/o/headless-delivery/v1.0/sites/\{siteId}/structured-contents 

      Then the server will return together with the data of the structured contents created, a block named "actions" with just "GET" statements

       

      Given a user with a role with permissions to create, update, delete, view, subscribe structured content

      When the user makes a call to http://localhost:8080/o/headless-delivery/v1.0/sites/\{siteId}/structured-contents 

      Then the server will return together with the data of the structured contents created, a block named "actions" with all the actions allowed

       

      Given a user with a role with different permissions for structured content or blogs or documents, etc

      When the user makes calls to the API

      Then the server will return together with the data of the corresponding endpoints blocks named "actions" with all the actions she can perform

       

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              Assignee:
              manoel.cyreno Manoel Cyreno
              Reporter:
              pablo.agulla Pablo Agulla
              Engineering Assignee:
              Javier de Arcos Velilla
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.X
                  Master