Skip to content

When the Permissions plugin updates the permissions collection, it doesn't consult the userId() option #268

@ctnitchie

Description

@ctnitchie

Results in, for example:

annotation.permissions = {
read: [],
admin: [6],
delete: [6],
update: [{key: 6, name: 'Somebody'}]
};

The fix is in Permissions.updateAnnotationPermissions(). Replace this:

annotation.permissions[type] = [@user]

With this:

annotation.permissions[type] = [@options.userId(@user)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions