mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 21:36:28 +00:00
Enforce assignment permissions and show active milestones
Gate assignment creation and editing by the relevant permissions, show ongoing milestones on the timeline, and restrict the forbidden-page admin link to authorized users. Also use the shared RBAC role type and tighten sidebar active-state matching.
This commit is contained in:
@@ -15,13 +15,13 @@ import { titleCase } from '@/lib/helper';
|
||||
import PageLoading from '@/components/loader/PageLoading';
|
||||
import LazyLoading from '@/components/loader/LazyLoading';
|
||||
import { type IUser } from '../component/type';
|
||||
import { type IRole } from '@/app/admin/information/user-role/component/type';
|
||||
import { type ICompany } from '../../company/component/type';
|
||||
import { type IArea } from '../../area/component/type';
|
||||
import { type IDivision } from '../../division/component/type';
|
||||
import { type IPosition } from '@/app/admin/information/position/component/type';
|
||||
import { type IEmployeeType } from '@/app/admin/information/employee-type/component/type';
|
||||
import { toast } from 'sonner';
|
||||
import { IRole } from '@/types/rbac';
|
||||
|
||||
type Props = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user