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:
Ichsan Kurniawan
2026-11-10 11:27:05 +07:00
parent 279b642a7a
commit e67f671983
9 changed files with 147 additions and 56 deletions
@@ -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 = {};