Skip to content

Commit

Permalink
Fix trainer-share check causing false "Access denied" error
Browse files Browse the repository at this point in the history
  • Loading branch information
Chefkeks committed Nov 13, 2019
1 parent 7155d27 commit be67bd2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.316.4
1.9.317.1
1 change: 0 additions & 1 deletion commands/trainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
];

// Check access.
//$access = bot_access_check($update, 'trainer-share', false, true);
$access = bot_access_check($update, 'trainer-share', true, true);

// Display sharing options for admins and users with trainer-share permissions
Expand Down
2 changes: 1 addition & 1 deletion mods/trainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
];

// Check access.
$access = bot_access_check($update, 'trainer-share', false, true);
$access = bot_access_check($update, 'trainer-share', true, true);

// Display sharing options for admins and users with trainer-share permissions
if($access && (is_file(ROOT_PATH . '/access/' . $access) || $access == 'BOT_ADMINS')) {
Expand Down

0 comments on commit be67bd2

Please sign in to comment.