Skip to content

Commit 9fd4d87

Browse files
committed
Allow admins to bypass read-only (again)
1 parent bde5a43 commit 9fd4d87

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Refresh.Core/Extensions/GameUserExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public static class GameUserExtensions
77
{
88
public static bool IsWriteBlocked(this GameUser user, GameServerConfig config)
99
{
10+
if (user.Role == GameUserRole.Admin) return false;
1011
return GetRolePermissionsForUser(user, config).ReadOnlyMode;
1112
}
1213

0 commit comments

Comments
 (0)