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

New users unauthorised to create wikis #62

Closed
jahvi opened this issue Mar 30, 2017 · 4 comments
Closed

New users unauthorised to create wikis #62

jahvi opened this issue Mar 30, 2017 · 4 comments

Comments

@jahvi
Copy link
Contributor

jahvi commented Mar 30, 2017

Similar to #8 I'm getting Unauthorized when trying to create wikis with newly invited users, it works fine for the account that originally created the team.

Steps to replicate

  1. Invite new user
  2. Accept invite link email and register
  3. Login and try to create a wiki

It looks like the main issue is that the following line in the hasPermissions() function returns empty:

$roles = $this->with('roles')->findOrFail(Auth::user()->id)->roles;

Maybe the roles are not getting assigned correctly on new users?

@jahvi
Copy link
Contributor Author

jahvi commented Apr 5, 2017

Thanks, I'm still seeing the same issue though but now the primary account can't create wikis either, I get a 403 page for all admin users now.

@jahvi
Copy link
Contributor Author

jahvi commented Apr 5, 2017

I couldn't run db:seed this time though, I'm getting the following error not sure if it's related:

Class Database\Seeds\Components\Role\RolesTableSeeder does not exist

@ziishaned
Copy link
Owner

@jahvi Can you please run the following commands and let me know if you still have the same problem:

php artisan migrate:refresh
php artisan db:seed

@jahvi
Copy link
Contributor Author

jahvi commented Apr 5, 2017

Yes my bad I needed to composer dump-autoload as well after the update. Can confirm it works now 👍

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

2 participants