RBAC Improvements
Caching improvements Maker-Checker Implementation
This commit is contained in:
@@ -33,9 +33,9 @@ export function ExportButton<T>({
|
||||
const dropdownRef = useRef<HTMLDivElement>(null);
|
||||
const menuRef = useRef<HTMLDivElement>(null);
|
||||
const { user, claims, tenantId } = useAuth();
|
||||
const { canExport } = useRbac();
|
||||
const { canExport, isUnrestricted } = useRbac();
|
||||
|
||||
const isClaimAllowed = claim ? canExport(claim) : true;
|
||||
const isClaimAllowed = claim ? canExport(claim) : isUnrestricted;
|
||||
const isDisabled = !data || data.length === 0 || !isClaimAllowed;
|
||||
|
||||
const updatePosition = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user