Skip to content

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

@dkarlovi

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.

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