Skip to content

Commit

Permalink
manager: smoother rights check (fixes #8105) (#8106)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
Mutugiii and dogi authored Jan 16, 2025
1 parent 8dea8ae commit df8e748
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "planet",
"license": "AGPL-3.0",
"version": "0.16.62",
"version": "0.16.63",
"myplanet": {
"latest": "v0.22.7",
"min": "v0.21.7"
"latest": "v0.22.13",
"min": "v0.21.13"
},
"scripts": {
"ng": "ng",
Expand Down
6 changes: 5 additions & 1 deletion src/app/home/home-router.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ const routes: Routes = [
{ path: '', component: CommunityComponent },
{ path: 'community/:code', component: CommunityComponent },
{ path: 'users', loadChildren: () => import('../users/users.module').then(m => m.UsersModule) },
{ path: 'manager', loadChildren: () => import('../manager-dashboard/manager-dashboard.module').then(m => m.ManagerDashboardModule) },
{
path: 'manager',
loadChildren: () => import('../manager-dashboard/manager-dashboard.module').then(m => m.ManagerDashboardModule),
data: { roles: [ '_admin' ] }
},
{ path: 'courses', loadChildren: () => import('../courses/courses.module').then(m => m.CoursesModule) },
{ path: 'feedback', loadChildren: () => import('../feedback/feedback.module').then(m => m.FeedbackModule) },
{ path: 'resources', loadChildren: () => import('../resources/resources.module').then(m => m.ResourcesModule) },
Expand Down

0 comments on commit df8e748

Please sign in to comment.