Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Is a metadata object visible or not?
Function IsMetadataObjectAccessible(MetadataObject)
Result = False;
AreFunctionalOptionsInvolved = False;
For Each FunctionalOption In Metadata.FunctionalOptions Do
If FunctionalOption.Content.Contains(MetadataObject) Then
AreFunctionalOptionsInvolved = True;
If GetFunctionalOption(FunctionalOption.Name) Then
Result = True;
Break;
EndIf;
EndIf;
EndDo;
If Not AreFunctionalOptionsInvolved Then
Result = True;
EndIf;
Return Result;
EndFunction // IsMetadataObjectAccessible()
@vkostyanetsky

This comment has been minimized.

Copy link
Owner Author

@vkostyanetsky vkostyanetsky commented Sep 19, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment