Skip to content

Commit

Permalink
Merge pull request #109 from meshuga/master
Browse files Browse the repository at this point in the history
Fixed configurable Role-Permission pivot table
  • Loading branch information
Zizaco committed Mar 28, 2014
2 parents 48cbd45 + 40bdf91 commit b580e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Zizaco/Entrust/EntrustRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function perms()
// To maintain backwards compatibility we'll catch the exception if the Permission table doesn't exist.
// TODO remove in a future version
try {
return $this->belongsToMany(Config::get('entrust::permission'));
return $this->belongsToMany(Config::get('entrust::permission'), Config::get('entrust::permission_role_table'));
} catch(Execption $e) {}
}

Expand Down

0 comments on commit b580e42

Please sign in to comment.