Skip to content

Commit 28cbaac

Browse files
pdo-axelorpbe-axelor
authored andcommitted
Fix MetaPermissions.canWrite permission check
MetaPermissions.canWrite should check CAN_WRITE instead of CAN_EXPORT Fixes #1386
1 parent dc5577c commit 28cbaac

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

axelor-core/src/main/java/com/axelor/meta/MetaPermissions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public boolean canRead(User user, String object, String field) {
196196
}
197197

198198
public boolean canWrite(User user, String object, String field) {
199-
return can(user, object, field, CAN_EXPORT);
199+
return can(user, object, field, CAN_WRITE);
200200
}
201201

202202
public boolean canExport(User user, String object, String field) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Fix MetaPermissions.canWrite permission check
3+
type: fix
4+
description: |
5+
MetaPermissions.canWrite should check CAN_WRITE instead of CAN_EXPORT

0 commit comments

Comments
 (0)