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;
// Check if the session is valid
if (!session_check()
|| !CurrentSession::$user->activated
|| !CurrentSession::$user->verified
|| CurrentSession::$user->restricted) {
throw new HttpMethodNotAllowedException();
if (!session_check() || !CurrentSession::$user->activated || CurrentSession::$user->restricted) {
throw new HttpMethodNotAllowedException;
}
// Fetch the limit

View file

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

View file

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