|
@@ -397,6 +397,13 @@ static shellmatta_retCode_t helpCmdFct(const shellmatta_handle_t handle, const c
|
|
|
cmd = inst->cmdList;
|
|
|
while(NULL != cmd)
|
|
|
{
|
|
|
+#ifdef SHELLMATTA_AUTHENTICATION
|
|
|
+ if (SHELLMATTA_OK != shellmatta_auth_is_cmd_permitted(handle, cmd))
|
|
|
+ {
|
|
|
+ cmd = cmd->next;
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+#endif
|
|
|
maxCmdLen = SHELLMATTA_MAX(maxCmdLen, strlen(cmd->cmd));
|
|
|
if(NULL != cmd->cmdAlias)
|
|
|
{
|
|
@@ -409,6 +416,13 @@ static shellmatta_retCode_t helpCmdFct(const shellmatta_handle_t handle, const c
|
|
|
cmd = inst->cmdList;
|
|
|
while(NULL != cmd)
|
|
|
{
|
|
|
+#ifdef SHELLMATTA_AUTHENTICATION
|
|
|
+ if (SHELLMATTA_OK != shellmatta_auth_is_cmd_permitted(handle, cmd))
|
|
|
+ {
|
|
|
+ cmd = cmd->next;
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+#endif
|
|
|
/** -# determine the length of each field to add padding */
|
|
|
cmdLen = strlen(cmd->cmd);
|
|
|
cmdAliasLen = (NULL != cmd->cmdAlias) ? strlen(cmd->cmdAlias) : 0u;
|