Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-2064

Object/datastream access functions instead of bare Drupal user_access

    Details

      Description

      Use our object/datastream specific access functions to allow our hooked behaviour.

      There's a few places in core code which calls Drupal's user_access() where it might more appropriately call one of either islandora_object_access() or islandora_datastream_access() to allow the result to be influenced.

      In particular:

      -Use Case-

      To permit the override of permissions as evaluated in Islandora's GUI.

      -Technical Approach-

      Replace user_access() calls with either islandora_object_access() or islandora_datastream_access() calls as seems appropriate.

      -Test Case-

      Primarily, regression test: Things should continue to work as they always have.

      -Impact-

      Minimal. Our other object/datastream access functions continue to call user_access() eventually, under the hood; however, opens the door for implementations of the relevant hooks to influence the outcomes.


      Adam Vessey
      Developer
      discoverygarden inc. | Managing Digital Content

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adam.vessey Adam Vessey
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: