Removed auth middleware from controllers

This commit is contained in:
jitendra 2018-12-27 17:05:05 +05:30
parent fec802b4af
commit 9581082f56
14 changed files with 4 additions and 26 deletions

View File

@ -38,8 +38,6 @@ class AttributeController extends Controller
*/
public function __construct(Attribute $attribute)
{
$this->middleware('admin');
$this->attribute = $attribute;
$this->_config = request('_config');

View File

@ -39,8 +39,6 @@ class AttributeFamilyController extends Controller
*/
public function __construct(AttributeFamily $attributeFamily)
{
$this->middleware('admin');
$this->attributeFamily = $attributeFamily;
$this->_config = request('_config');

View File

@ -37,8 +37,6 @@ class CategoryController extends Controller
*/
public function __construct(Category $category)
{
$this->middleware('admin');
$this->category = $category;
$this->_config = request('_config');

View File

@ -38,8 +38,6 @@ class ChannelController extends Controller
*/
public function __construct(Channel $channel)
{
$this->middleware('admin');
$this->channel = $channel;
$this->_config = request('_config');

View File

@ -37,8 +37,6 @@ class CurrencyController extends Controller
*/
public function __construct(Currency $currency)
{
$this->middleware('admin');
$this->currency = $currency;
$this->_config = request('_config');

View File

@ -46,8 +46,6 @@ class ExchangeRateController extends Controller
*/
public function __construct(ExchangeRate $exchangeRate, Currency $currency)
{
$this->middleware('admin');
$this->exchangeRate = $exchangeRate;
$this->currency = $currency;

View File

@ -37,8 +37,6 @@ class LocaleController extends Controller
*/
public function __construct(Locale $locale)
{
$this->middleware('admin');
$this->locale = $locale;
$this->_config = request('_config');

View File

@ -29,8 +29,6 @@ class SubscriptionController extends Controller
public function __construct(Subscribers $subscribers)
{
$this->middleware('admin');
$this->subscribers = $subscribers;
$this->_config = request('_config');

View File

@ -78,8 +78,6 @@ class ProductController extends Controller
Product $product,
ProductGrid $productGrid)
{
$this->middleware('admin');
$this->attributeFamily = $attributeFamily;
$this->category = $category;

View File

@ -328,6 +328,10 @@ input {
.account-items-list {
display: block;
width: 100%;
.grid-container {
margin-top: 40px;
}
}
//no search results
.search-result-status {

View File

@ -60,8 +60,6 @@ class TaxCategoryController extends Controller
TaxMap $taxMap
)
{
$this->middleware('admin');
$this->taxCategory = $taxCategory;
$this->taxRate = $taxRate;

View File

@ -38,8 +38,6 @@ class TaxRateController extends Controller
*/
public function __construct(TaxRate $taxRate)
{
$this->middleware('admin');
$this->taxRate = $taxRate;
$this->_config = request('_config');

View File

@ -29,8 +29,6 @@ class AccountController extends Controller
*/
public function __construct()
{
$this->middleware('admin');
$this->_config = request('_config');
}

View File

@ -48,8 +48,6 @@ class UserController extends Controller
*/
public function __construct(Admin $admin, Role $role)
{
$this->middleware('admin');
$this->admin = $admin;
$this->role = $role;