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

Fixed permission names and made interface more user friendly #11

Closed
wants to merge 10 commits into from

Conversation

Pawel-IT
Copy link
Contributor

  • The permissions in PostPolicy did not match the name of permissions created by seeder so none of the policy checks ever worked causing confusion for users trying to learn how this package works. Fixed that in the edit case, also left a wrong case with comments explaining the issue and how the permission names must match what you have in your database for those that might be using the default Policy creator from Laravel. Removed some of the policies that were not needed
  • Improved the interface to give you login info on the welcome page and link to demo dashboard
  • Added all the routes to demo dashboard as links
  • Added posts to the DB seeder so could test permissions on the posts page.
  • Documented the permissions you do have and don't have on the blade views to make things easier to understand for new users to the spatie-permissions package.

Middlewares needs to be changed to Middleware
- Fixed issue with dark mode on welcome view
- Added login info to main welcome view
- Added link to demo page on welcome view
- Added various demo links to demo home page view
This caused confusion if you're not user ID one
and assigned it to admin role
and added comments to code to example what is going on and make it clear when somethign will and won't work. Before this update none of these permissions did anything as they didn't match our permissions in DB.
and add nav links
@Pawel-IT Pawel-IT marked this pull request as draft December 15, 2024 00:52
@Pawel-IT Pawel-IT closed this Dec 15, 2024
@Pawel-IT
Copy link
Contributor Author

Pawel-IT commented Dec 15, 2024

I just realized the tests are the true demo in this package. Sorry. Will create another pull request later to match the interface to the tests as this is really confusing to new users I think.

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

Successfully merging this pull request may close these issues.

1 participant