Skip to content

"If user has all roles" doc section confusing #43

@mkarnicki

Description

@mkarnicki

Hi. The section of the documentation here says:

if($user->isAll('admin|forum.moderator')){
        // do something
    }

yet, it contains an alternative symbol ( | ). That's actually confusing, as | would then be ignored in this case? Perhaps you could clarify the behavior in the docs. In my mind, this should throw an exception (you're asking for all, yet using incorrect symbol in the list). Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions