Closed jwikman closed 2 months ago
The following code triggers LC0068 on the Insert() statement.
Insert()
[InherentPermissions(PermissionObjectType::TableData, Database::MyTable, 'I')] procedure InsertSomeData() var MyTable: Record MyTable; begin MyTable.Init(); MyTable.MyField := 1; MyTable.Insert(true); end;
And this correctly removes LC0068
[InherentPermissions(PermissionObjectType::TableData, Database::MyTable, 'i')] procedure InsertSomeData() var MyTable: Record MyTable; begin MyTable.Init(); MyTable.MyField := 1; MyTable.Insert(true); end;
But I believe that LC0068 should not be fired in the first case either, since no permissions are needed for the user to run this piece of code.
The same applies to the InherentPermissions R, M and D vs. r, m and d.
R
M
D
r
m
d
This should be fixed now in the latest pre-release
Seems to work, thanks!
The following code triggers LC0068 on the
Insert()
statement.And this correctly removes LC0068
But I believe that LC0068 should not be fired in the first case either, since no permissions are needed for the user to run this piece of code.
The same applies to the InherentPermissions
R
,M
andD
vs.r
,m
andd
.