Skip to content

Commit

Permalink
Update Controller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-os committed Mar 21, 2017
1 parent 683b0bf commit 460801b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ public function handle(&$core, &$securityResult)
/**@var \samson\activerecord\user Get authorized user object */
$authorizedUser = $social->user();

$dbTable = $social->dbTable.'Query';
$groupIdField = $dbTable::$fieldIDs[$this->dbGroupIdField];
$dbTable = $social->dbTable;
$groupIdField = $dbTable::$_attributes[$this->dbGroupIdField];

// Try to load security group rights from cache
$userRights = & $this->rightsCache[$authorizedUser->$groupIdField];
Expand Down

0 comments on commit 460801b

Please sign in to comment.