bool hasPermission(String pathName) { if (currentDetails == null) return false; return currentDetails!.availableAccess.contains(pathName); }