Skip to content

dataset.xhtml - Edit button not rendered if user has only ManageDatasetPermissions #3981

@mdmADA

Description

@mdmADA

Version 4.6.1

In dataset.xhtml, the Edit button has the 'Permissions' option within its dropdown. However, this Edit button is rendered (following the method calls to the PermissionsWrapper class) only if the user has EditDataset permission.

The Edit button is not rendered if the user has only ManageDatasetPermissions so a user with only ManageDatasetPermissions will never have access to the permissions option. (The permissions option within the Edit button dropdown IS rendered if the user has been assigned ManageDatasetPermissions).

The Edit button should be rendered if the user has (EditDataset or ManageDatasetPermissions) permissions. If they only have ManageDatasetPermissions, only the Permissions option within the Edit dropdown list should be rendered/enabled. (Nothing else should be editable by the user.)

Note: this issue tracks the very bug listed above; the comments below delve into more general discussion about what a custom role with only ManageDatasetPermissions could do but no changes related to that are in scope for this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions