Thanks to visit codestin.com
Credit goes to github.com

Skip to content

user:can should be a conditional #479

@edalzell

Description

@edalzell

Would great if you could use else with the user:can and user:cant tags.

Otherwise you get this:

{{ user:cant do="edit projects collection" }}
    {{ redirect to="{route:login}" }}
{{ /user:cant }}
{{ user:can do="edit projects collection" }}
    {{ partial:app/estimate }}
{{ /user:can }}

Whereas this would be nicer:

{{ user:cant do="edit projects collection" }}
    {{ redirect to="{route:login}" }}
{{ else }}
    {{ partial:app/estimate }}
{{ /user:cant }}

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