Return "*" for superadmin permissions

This commit is contained in:
MarioE 2013-11-02 13:25:38 -04:00
parent 0043fc35d7
commit 2f9fbad5bc

View file

@ -118,7 +118,7 @@ namespace TShockAPI
/// <summary> /// <summary>
/// The permissions of this group and all that it inherits from. /// The permissions of this group and all that it inherits from.
/// </summary> /// </summary>
public List<string> TotalPermissions public virtual List<string> TotalPermissions
{ {
get get
{ {
@ -326,6 +326,10 @@ namespace TShockAPI
/// </summary> /// </summary>
public class SuperAdminGroup : Group public class SuperAdminGroup : Group
{ {
public override List<string> TotalPermissions
{
get { return new List<string> { "*" }; }
}
public SuperAdminGroup() public SuperAdminGroup()
: base("superadmin") : base("superadmin")
{ {