Skip to content

Commit 56709e0

Browse files
committed
fixing permissions issue on TOTP page
1 parent 0f4b20c commit 56709e0

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

_build/gpm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"lowCaseName": "twilio",
44
"description": "Twilio for MODX Revolution 3.x",
55
"author": "John Peca",
6-
"version": "2.0.1",
6+
"version": "2.0.2",
77
"menus": [
88
{
99
"text": "twilio.users",

core/components/twilio/controllers/users.class.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33

44
class TwilioUsersManagerController extends TwilioBaseManagerController
55
{
6-
public $permission = 'twilio_manage_auth';
6+
public function checkPermissions()
7+
{
8+
return $this->modx->hasPermission('twilio_manage_auth');
9+
}
710

811
public function getPageTitle()
912
{

core/components/twilio/index.class.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ abstract class TwilioBaseManagerController extends modManagerController
66
{
77
public string $version = '1.0.0';
88

9-
public function checkPermissions()
10-
{
11-
return $this->modx->hasPermission('twilio_manage_auth');
12-
}
13-
149
public function initialize()
1510
{
1611
$corePath = $this->modx->getOption(

0 commit comments

Comments
 (0)