We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2322fdf commit 4000831Copy full SHA for 4000831
1 file changed
dev-demo/resources/apartments.ts
@@ -522,7 +522,6 @@ export default {
522
meta: any;
523
source: ActionCheckSource;
524
}): Promise<boolean | string> => {
525
- console.log("edit aa check 🔒", meta, source, adminUser);
526
return adminUser.dbUser.role === "superadmin";
527
// return true;
528
// if (source === ActionCheckSource.DisplayButtons) {
@@ -542,7 +541,6 @@ export default {
542
541
return true;
543
},
544
show: async ({ adminUser, meta, source, adminforth }: any) => {
545
- console.log("show aa check 🔒", meta);
546
// if (source === 'showRequest' || source === 'editLoadRequest') {
547
// const record = await adminforth.resource('aparts').get(Filters.EQ('id', meta.pk));
548
// return record.user_id === adminUser.dbUser.id;
0 commit comments