Ejemplo n.º 1
0
 public function getRemoveBan($id)
 {
     \EveBannedCall::where('id', $id)->delete();
     return Response::json();
 }
Ejemplo n.º 2
0
 public static function isBannedCall($api, $scope, $owner = 0, $accessMask = 0)
 {
     // Check if we should retreive the current access mask
     if ($accessMask == 0) {
         $accessMask = \EveAccountAPIKeyInfo::where('keyID', '=', $owner)->pluck('accessMask');
     }
     $hash = BaseApi::makeCallHash($api, $scope, $owner . $accessMask);
     $banned = \EveBannedCall::where('hash', '=', $hash)->first();
     if ($banned) {
         return true;
     } else {
         return false;
     }
 }