-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfixes for indirect permissions #735
Conversation
@Arthurvdv can you have a look why the builds are failing for those old versions here? |
The problem is caused by namespaces, which aren't there in the beginning of the v12.0 versions of AL. You need to wrap these with a preprocessor directive, for example see rule 0039: Lines 148 to 151 in 976b45b
|
@@ -213,20 +214,20 @@ private void CheckProcedureInvocation(IPropertySymbol objectPermissions, string | |||
var objectName = typeAndObjectName[typeEndIndex..].Trim().Trim('"'); | |||
|
|||
// Match against the parameters of the procedure | |||
if (type == "tabledata" && objectName == variableTypeName.ToLowerInvariant()) | |||
if (type == "tabledata" && (objectName == variableType.Name.ToLowerInvariant() || objectName.Replace("\"","") == (variableType.OriginalDefinition.ContainingNamespace.QualifiedName.ToLowerInvariant() + "." + variableType.Name.ToLowerInvariant()))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can probarly use the .UnquoteIdentifier instead of .Replace(""","")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at this point its just a string, so I dont think that method is available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a stringExtension, so I should work
No description provided.