hasPermission method
Implementation
bool hasPermission(String pathName) {
if (currentDetails == null) return false;
final normalizedPath = _normalizePath(pathName);
final camelPath = snakeToCamel(normalizedPath);
return _hasFullAccess(normalizedPath, camelPath) ||
_hasReadOnlyAccess(normalizedPath);
}