File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,8 @@ public function getDeletedPermissions()
249
249
*/
250
250
public function getPermissionsWithRoles ($ roleId = null )
251
251
{
252
- $ query = DB ::table (config ('roles.permissionsRoleTable ' ));
252
+ $ query = DB ::connection (config ('roles.connection ' ))->table (config ('roles.permissionsRoleTable ' ));
253
+
253
254
if ($ roleId ) {
254
255
$ query ->where ('role_id ' , '= ' , $ roleId );
255
256
}
@@ -266,7 +267,8 @@ public function getPermissionsWithRoles($roleId = null)
266
267
*/
267
268
public function getPermissionUsers ($ permissionId = null )
268
269
{
269
- $ query = DB ::table (config ('roles.permissionsUserTable ' ));
270
+ $ query = DB ::connection (config ('roles.connection ' ))->table (config ('roles.permissionsUserTable ' ));
271
+
270
272
if ($ permissionId ) {
271
273
$ query ->where ('permission_id ' , '= ' , $ permissionId );
272
274
}
You can’t perform that action at this time.
0 commit comments