added permission to violations list

This commit is contained in:
2025-12-29 11:47:19 +03:30
parent 39089e1f4e
commit 85dbd46e21
2 changed files with 20 additions and 20 deletions

View File

@@ -1,27 +1,27 @@
// javascript for production
// {
// "compilerOptions": {
// "paths": {
// "@/*": ["./src/*"],
// "^/*": ["./public/*"]
// }
// }
// }
// typescript for local development
{
"compilerOptions": {
"jsx": "react-jsx",
"noUnusedLocals": true,
"noImplicitAny": false,
"checkJs": true,
"allowJs": true,
"strict": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"^/*": ["./public/*"]
}
},
"exclude": ["node_modules"]
}
}
// typescript for local development
// {
// "compilerOptions": {
// "jsx": "react-jsx",
// "noUnusedLocals": true,
// "noImplicitAny": false,
// "checkJs": true,
// "allowJs": true,
// "strict": true,
// "baseUrl": ".",
// "paths": {
// "@/*": ["./src/*"],
// "^/*": ["./public/*"]
// }
// },
// "exclude": ["node_modules"]
// }

View File

@@ -18,7 +18,7 @@ const ReportPage = () => {
const { data: userPermissions } = usePermissions();
const { user } = useAuth();
const requestServer = useRequest();
const hasProvincesPermission = userPermissions?.includes("all"); // TODO : change permission
const hasProvincesPermission = userPermissions?.includes("mission-report-country");
const defaultValues = {
from_date: moment(new Date()).format("YYYY-MM-DD"),