Првоерить, выдано ли право доступа у роли
function PermissionGranted(aPermCode: integer; aNode: TuniTreeNode = nil): boolean;