Inhalte aufrufen

Profilbild

How SuperAdministrators works

customer role

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
2 Antworten zu diesem Thema

#1 Jefferson

Jefferson

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 30 Beiträge

Geschrieben: 21 August 2014 - 02:11

Hello everyone,

 

could someone clear me a doubt,please?

 

 

I was looking into the class SystemCustomerRoleNames and i check that we have a  customer role name as SuperAdministrators and this role is not showed in the role page.

 

So, this role, SuperAdministrators should be apply to the Store Administrators(T.I team?)

 

How this work's? 

 

 

 

 



#2 Jefferson

Jefferson

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 30 Beiträge

Geschrieben: 21 August 2014 - 02:13

I'm wrinting this because  in the Seed class we have this method:

public IList<CustomerRole> CustomerRoles()
{
var crAdministrators = new CustomerRole
{
Name = "Administrators",
Active = true,
IsSystemRole = true,
SystemName = SystemCustomerRoleNames.Administrators,
};
var crRegistered = new CustomerRole
{
Name = "Registered",
Active = true,
IsSystemRole = true,
SystemName = SystemCustomerRoleNames.Registered,
};
var crGuests = new CustomerRole
{
Name = "Guests",
Active = true,
IsSystemRole = true,
SystemName = SystemCustomerRoleNames.Guests,
};
   var crVendors = new CustomerRole
                   {
                       Name = "Vendors",
                       Active = true,
                       IsSystemRole = true,
                       SystemName = SystemCustomerRoleNames.Vendors,
                   };
var entities = new List<CustomerRole>
{
crAdministrators,
crRegistered,
crGuests,
                                    crVendors
};
this.Alter(entities);
return entities;
}
 
 
But we don't insert this new role in their.

  • MediArt gefällt das

#3 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 21 August 2014 - 11:17

No it's not necessary. The super admin role is currently not used. It is intended for future use.
To grant admin rights simply assign the SystemCustomerRoleNames.Administrators role.

Marcus Gesing

Smartstore AG