Skip to content

[Improvement]: include parent path in error messages when creating #926

Description

@dkarlovi

Improvement description

Currently you'll get an error message like

not allowed to create object <class>

as seen here:

if (!$me->omitPermissionCheck && !WorkspaceHelper::checkPermission($parent, 'create')) {

The error message here could be improved by specifying which parent we're creating in, allowing the user to notice they've passed an invalid parent (this is especially important if they have a level of indirection between them and passing the parent, they don't pass it directly).

something like

not allowed to create object <class> at path <path>

would improve this significantly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Affected capability

    None yet

    Platform Version

    None yet

    Galaxy

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions