Skip to content

Commit fc712dc

Browse files
author
Open Lowcode SAS
committed
Solves #31
1 parent e23b751 commit fc712dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/org/openlowcode/design/access/ObjectStatePrivilege.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public void writeImport(SourceGenerator sg, ActionDefinition contextaction) thro
9898

9999
@Override
100100
public void generateSecurityManagerSuperStatement(SourceGenerator sg) throws IOException {
101-
sg.wl(" super(\"" + this.getAuthority().getName().toUpperCase() + "\",new String[]{");
101+
sg.wl(" super(\""
102+
+ (this.getAuthority().getModule() != null ? this.getAuthority().getModule().getCode() + "_" : "")
103+
+ this.getAuthority().getName().toUpperCase() + "\",new String[]{");
102104
for (int i = 0; i < allowedstates.length; i++) {
103105
sg.wl(" " + (i > 0 ? "," : "") + "\"" + allowedstates[i].getName().toUpperCase()
104106
+ "\"");

0 commit comments

Comments
 (0)