Skip to content

Commit

Permalink
bot - group - faq fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grandmotivator committed May 4, 2023
1 parent 8c68b87 commit 282e926
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/bot/components/actions/BaseAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ abstract class BaseAction extends Action
'insert' => true,
'update' => true,
'delete' => true,
'view-list' => true,
],
'listBackRoute' => null,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function run($chatId = null, $page = 1)
'chatId' => $chatId,
]),
'text' => Emoji::LIST,
'visible' => !empty($phrases),
'visible' => !empty($phrases) && $this->options['actions']['view-list'],
],
[
'callback_data' => $this->createRoute($this->enterActionId, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function actions()
'insert' => false,
'update' => false,
'delete' => false,
'view-list' => false,
],
'listBackRoute' => [
'controller' => 'app\modules\bot\controllers\privates\GroupGuestController',
Expand Down

0 comments on commit 282e926

Please sign in to comment.