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

#32 - Add admin roles #33

Merged
merged 32 commits into from
Aug 27, 2024
Merged

#32 - Add admin roles #33

merged 32 commits into from
Aug 27, 2024

Conversation

PrabuckiDominik
Copy link
Collaborator

This should close #32 .

Add IsAdminMiddleware
Add super admin and admin to the seeder
Add test dashboard for admin and user
Update tests that check role permission
Update routes
@PrabuckiDominik PrabuckiDominik linked an issue Aug 21, 2024 that may be closed by this pull request
tests/Feature/QuizTest.php Outdated Show resolved Hide resolved
tests/Feature/QuizTest.php Show resolved Hide resolved
app/Http/Controllers/AuthenticateSessionController.php Outdated Show resolved Hide resolved
app/Http/Middleware/IsAdminMiddleware.php Outdated Show resolved Hide resolved
app/Role.php Outdated Show resolved Hide resolved
app/Models/User.php Outdated Show resolved Hide resolved
config/roles.php Outdated Show resolved Hide resolved
database/factories/UserFactory.php Show resolved Hide resolved
database/factories/UserFactory.php Outdated Show resolved Hide resolved
config/roles.php Outdated Show resolved Hide resolved
Copy link
Member

@kamilpiech97 kamilpiech97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missclick

kamilpiech97
kamilpiech97 previously approved these changes Aug 27, 2024
mlencki
mlencki previously approved these changes Aug 27, 2024
kamilpiech97
kamilpiech97 previously approved these changes Aug 27, 2024
@PrabuckiDominik PrabuckiDominik merged commit 216accb into main Aug 27, 2024
3 checks passed
@PrabuckiDominik PrabuckiDominik deleted the 32-admin-role branch August 27, 2024 10:11
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.

Admin role
5 participants