mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Add lock NullValueBehavior ALLOW_WRITE_ONLY... fixes a case where audit couldn't be inserted
This commit is contained in:
@ -325,6 +325,8 @@ public class InsertAction extends AbstractQActionFunction<InsertInput, InsertOut
|
||||
else
|
||||
{
|
||||
for(QRecord inputRecord : inputRecords)
|
||||
{
|
||||
if(RecordSecurityLock.NullValueBehavior.DENY.equals(recordSecurityLock.getNullValueBehavior()))
|
||||
{
|
||||
inputRecord.addError("You do not have permission to insert this record - the referenced " + leftMostJoinTable.getLabel() + " was not found.");
|
||||
}
|
||||
@ -334,6 +336,7 @@ public class InsertAction extends AbstractQActionFunction<InsertInput, InsertOut
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -60,6 +60,7 @@ public class RecordSecurityLock
|
||||
public enum NullValueBehavior
|
||||
{
|
||||
ALLOW,
|
||||
ALLOW_WRITE_ONLY, // not common - but see Audit, where you can do a thing that inserts them into a generic table, even though you can't later read them yourself...
|
||||
DENY
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user