Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission is not working as expected #13

Closed
saimirballeshi opened this issue Apr 13, 2018 · 2 comments
Closed

Permission is not working as expected #13

saimirballeshi opened this issue Apr 13, 2018 · 2 comments

Comments

@saimirballeshi
Copy link

Hello,
I'm facing problems on checking permissions for users in roles, it return always true even if I detach the permision from role

@jeremykenedy
Copy link
Owner

@base64bits
Copy link

For those still having issues change in DatabaseSeeder.php

public function run()
{
Model::unguard();

        $this->call(PermissionsTableSeeder::class);
        $this->call(RolesTableSeeder::class);
        $this->call(ConnectRelationshipsSeeder::class);
        //$this->call('UsersTableSeeder');

    Model::reguard();
}

To

public function run()
{
Model::unguard();

        $this->call('PermissionsTableSeeder');
        $this->call('RolesTableSeeder');
        $this->call('ConnectRelationshipsSeeder');
        // $this->call('UsersTableSeeder');

    Model::reguard();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants