Skip to content
Snippets Groups Projects

remove policy check temporary

Merged Mohammad Torkashvand requested to merge feature/NAT-397-add-aai-oidc-to-gui into develop
2 files
+ 19
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 18
0
 
import { loadPolicy } from "@open-policy-agent/opa-wasm";
 
import { ENV } from "env";
 
import { join } from "lodash";
 
 
export async function createPolicyCheck(user?: Partial<Oidc.Profile>) {
 
if (!user) {
 
return () => true;
 
}
 
try {
 
function allowed(resource: string): boolean {
 
return true;
 
}
 
return allowed;
 
} catch {
 
console.error("policy evaluation error");
 
return (_: string) => false;
 
}
 
}
Loading