remove verified

can't even remember what it was supposed to do anyway
This commit is contained in:
flash 2016-12-07 15:38:57 +01:00
parent 948a06df4e
commit 4b3aeb6149
3 changed files with 2 additions and 16 deletions

View file

@ -54,11 +54,8 @@ class PremiumController extends Controller
$months = $_POST['months'] ?? 0; $months = $_POST['months'] ?? 0;
// Check if the session is valid // Check if the session is valid
if (!session_check() if (!session_check() || !CurrentSession::$user->activated || CurrentSession::$user->restricted) {
|| !CurrentSession::$user->activated throw new HttpMethodNotAllowedException;
|| !CurrentSession::$user->verified
|| CurrentSession::$user->restricted) {
throw new HttpMethodNotAllowedException();
} }
// Fetch the limit // Fetch the limit

View file

@ -242,12 +242,6 @@ class User
*/ */
public $activated = false; public $activated = false;
/**
* Is this user verified?
* @var bool
*/
public $verified = false;
/** /**
* Is this user restricted? * Is this user restricted?
* @var bool * @var bool
@ -381,7 +375,6 @@ class User
$this->musicListening = boolval($userRow->user_music_listening); $this->musicListening = boolval($userRow->user_music_listening);
$this->musicCheck = intval($userRow->user_music_check); $this->musicCheck = intval($userRow->user_music_check);
$this->activated = boolval($userRow->user_activated); $this->activated = boolval($userRow->user_activated);
$this->verified = boolval($userRow->user_verified);
$this->restricted = boolval($userRow->user_restricted); $this->restricted = boolval($userRow->user_restricted);
// Temporary backwards compatible IP storage system // Temporary backwards compatible IP storage system

View file

@ -17,9 +17,6 @@ class RestructurePermissions extends Migration
$table->boolean('user_activated') $table->boolean('user_activated')
->default(0); ->default(0);
$table->boolean('user_verified')
->default(0);
$table->boolean('user_restricted') $table->boolean('user_restricted')
->default(0); ->default(0);
}); });
@ -129,7 +126,6 @@ class RestructurePermissions extends Migration
$schema->table('users', function (Blueprint $table) { $schema->table('users', function (Blueprint $table) {
$table->dropColumn([ $table->dropColumn([
'user_activated', 'user_activated',
'user_verified',
'user_restricted', 'user_restricted',
]); ]);
}); });