Skip to content

Why the can() function lowercase the permission parameter ? #1212

@YusufDurmaz

Description

@YusufDurmaz

The can() function converts permission to lowercase letters. Why is there such a thing?
The function is looking for featureType.manage permission as featuretype.manage. This took me an hour to unnecessarily review my code.If it is not neceserry which software developer did this and why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions