260322:1648 Correct Coresspondence / Doing RFA / Correct CI
This commit is contained in:
@@ -16,12 +16,7 @@ interface CanProps {
|
||||
// Common use case: <Can permission="x">
|
||||
}
|
||||
|
||||
export function Can({
|
||||
permission,
|
||||
role,
|
||||
children,
|
||||
fallback = null,
|
||||
}: CanProps) {
|
||||
export function Can({ permission, role, children, fallback = null }: CanProps) {
|
||||
const { hasPermission, hasRole } = useAuthStore();
|
||||
|
||||
let allowed = true;
|
||||
|
||||
Reference in New Issue
Block a user