* Build 311
Fixes issue locking out admins after updating to build 310
This commit is contained in:
parent
2e42ab3bce
commit
8318c05b37
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue