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

Resource disappears #10

Open
simona2017 opened this issue Jan 14, 2019 · 1 comment
Open

Resource disappears #10

simona2017 opened this issue Jan 14, 2019 · 1 comment

Comments

@simona2017
Copy link

simona2017 commented Jan 14, 2019

I have installed everything as instructed, create an Equipment Role and Assigned a permission named create equipment, then assigned it to the user who is logged in. When I add the following code to the

Equipment Resource

class Equipment extends Resource
{
  use \Insenseanalytics\LaravelNovaPermission\PermissionsBasedAuthTrait;
  public static $permissionsForAbilities = [

      'create' => 'create equipment',
    ];

my resource disappears from the nav bar. Am I doing something wrong?

Thanks so much

@paras-malhotra
Copy link
Contributor

@simona2017 you would also need to add the view permissions for you to be able to view the resource in the navbar. If you wish to grant all abilities to users who have the create equipment permission, you can use 'all' => 'create equipment'

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

No branches or pull requests

2 participants