-
-
Save vkostyanetsky/a6c0525c38a8231f37a676ec240d657a to your computer and use it in GitHub Desktop.
Is a metadata object visible or not?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Заметка