* Build 311

Fixes issue locking out admins after updating to build 310
This commit is contained in:
Samuel Georges 2015-11-28 16:39:16 +11:00
parent 2e42ab3bce
commit 8318c05b37
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
* **Build 310** (2015-11-28)
- The Relation form widget now supports custom SQL with the `select` options, also `nameFrom` supports taking values from model attributes (see Backend > Forms docs).
- Added Refresh buttons to the back-end logging pages.
* **Build 305** (2015-10-17)
- The Inspector control has been dramatically improved.

View File

@ -13,7 +13,7 @@ class DbBackendAddSuperuserFlag extends Migration
});
AdminModel::all()->each(function($user) {
if ($user->isSuperUser()) {
if ($user->hasPermission('superuser')) {
$user->is_superuser = true;
$user->save();
}