Removed auth middleware from controllers
This commit is contained in:
parent
fec802b4af
commit
9581082f56
|
|
@ -38,8 +38,6 @@ class AttributeController extends Controller
|
|||
*/
|
||||
public function __construct(Attribute $attribute)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->attribute = $attribute;
|
||||
|
||||
$this->_config = request('_config');
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@ class AttributeFamilyController extends Controller
|
|||
*/
|
||||
public function __construct(AttributeFamily $attributeFamily)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->attributeFamily = $attributeFamily;
|
||||
|
||||
$this->_config = request('_config');
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ class CategoryController extends Controller
|
|||
*/
|
||||
public function __construct(Category $category)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->category = $category;
|
||||
|
||||
$this->_config = request('_config');
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@ class ChannelController extends Controller
|
|||
*/
|
||||
public function __construct(Channel $channel)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->channel = $channel;
|
||||
|
||||
$this->_config = request('_config');
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ class CurrencyController extends Controller
|
|||
*/
|
||||
public function __construct(Currency $currency)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->currency = $currency;
|
||||
|
||||
$this->_config = request('_config');
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ class ExchangeRateController extends Controller
|
|||
*/
|
||||
public function __construct(ExchangeRate $exchangeRate, Currency $currency)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->exchangeRate = $exchangeRate;
|
||||
|
||||
$this->currency = $currency;
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ class LocaleController extends Controller
|
|||
*/
|
||||
public function __construct(Locale $locale)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->locale = $locale;
|
||||
|
||||
$this->_config = request('_config');
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@ class SubscriptionController extends Controller
|
|||
|
||||
public function __construct(Subscribers $subscribers)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->subscribers = $subscribers;
|
||||
|
||||
$this->_config = request('_config');
|
||||
|
|
|
|||
|
|
@ -78,8 +78,6 @@ class ProductController extends Controller
|
|||
Product $product,
|
||||
ProductGrid $productGrid)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->attributeFamily = $attributeFamily;
|
||||
|
||||
$this->category = $category;
|
||||
|
|
|
|||
|
|
@ -328,6 +328,10 @@ input {
|
|||
.account-items-list {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
||||
.grid-container {
|
||||
margin-top: 40px;
|
||||
}
|
||||
}
|
||||
//no search results
|
||||
.search-result-status {
|
||||
|
|
|
|||
|
|
@ -60,8 +60,6 @@ class TaxCategoryController extends Controller
|
|||
TaxMap $taxMap
|
||||
)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->taxCategory = $taxCategory;
|
||||
|
||||
$this->taxRate = $taxRate;
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@ class TaxRateController extends Controller
|
|||
*/
|
||||
public function __construct(TaxRate $taxRate)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->taxRate = $taxRate;
|
||||
|
||||
$this->_config = request('_config');
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@ class AccountController extends Controller
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->_config = request('_config');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,8 +48,6 @@ class UserController extends Controller
|
|||
*/
|
||||
public function __construct(Admin $admin, Role $role)
|
||||
{
|
||||
$this->middleware('admin');
|
||||
|
||||
$this->admin = $admin;
|
||||
|
||||
$this->role = $role;
|
||||
|
|
|
|||
Loading…
Reference in New Issue