TempGroups now override the group's permissions again instead of simply extending them
This commit is contained in:
parent
e0ec785ba6
commit
7f9865bf5b
1 changed files with 4 additions and 1 deletions
|
|
@ -966,7 +966,10 @@ namespace TShockAPI
|
||||||
if (PlayerHooks.OnPlayerPermission(this, permission))
|
if (PlayerHooks.OnPlayerPermission(this, permission))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return (tempGroup != null && tempGroup.HasPermission(permission)) || Group.HasPermission(permission);
|
if (tempGroup != null)
|
||||||
|
return tempGroup.HasPermission(permission);
|
||||||
|
else
|
||||||
|
return Group.HasPermission(permission);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue