Skip to content

Permission problem in a view #23

@misterdesign

Description

@misterdesign

Hi @driesvints

I used Laravel 5, version 0.2 of the package and array as driver.

I created an alias to manage the crud, in lock.php

    'permissions' => function (Manager $manager, Lock $caller) {
        $manager->alias('manage', ['create', 'read', 'update', 'delete']);

I set the privilege of the alias for a resource

$manager->role('reseller')->allow('manage',   'users');

I denied one of the actions for that resource

$manager->role('reseller')->deny('create', 'users');

If I try with dd, the action is properly denied ✔️
If I try from view, the action is permitted ⁉️

Is my mistake or a bug?

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