Skip to content
Permalink
Browse files

Delete an user should work now

  • Loading branch information...
karsasmus committed Jul 21, 2018
1 parent 04633ca commit c0f0d6cdc36d97117949be50864f87070bb63e6e
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/source/classes/Models/User.php
@@ -409,9 +409,9 @@ public static function delete($data){
// Delete the target user
try {
$rowCount = self::getModel()->delete(function($where) use ($slug){
$where->equalTo('slug', $slug);
$where->notEqualTo('role', 'owner');
$rowCount = self::getModel()->delete(function($delete) use ($slug){
$delete->where->equalTo('slug', $slug);
$delete->where->notEqualTo('role', 'owner');
});
$ret = ($rowCount > 0);

0 comments on commit c0f0d6c

Please sign in to comment.
You can’t perform that action at this time.