Checks user permissions and application context to determine if the specified command is currently available.
Parameters
- cmd
-
Type: string
The name of the command.
- arg
-
Type: object
An optional argument that provides relevant context. Typically, this parameter is not required.
