Skip to content

Rails Admin's use of cancan(can) is incorrect and is erroring with v2 #2901

@hlascelles

Description

@hlascelles

When loading the main dashboard, the cancan(can) adapter tries to authorise(:dashboard, nil).

Not passing in any model (the nil) is incorrect use of cancancan, according to a maintainer.

Can we change the authorise to pass in :rails_admin as the "model"? I understand this is a breaking change. Perhaps do it if cancancan is seen to be v2 or higher?

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