Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,14 @@ public void RemoveSubPermission( string permission, string subPermission )

_queryCache = _queryCache.Clear();
}
}

public void ClearPermission( ulong playerId )
{
lock (_lock)
{
_temporaryPlayerPermissions.Remove(playerId);
}

_queryCache = _queryCache.Clear();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,10 @@ public interface IPermissionManager {
/// <param name="permission"> The permission to remove the sub-permission from. </param>
/// <param name="subPermission"> The sub-permission to remove. </param>
void RemoveSubPermission(string permission, string subPermission);
}

/// <summary>
/// Clear all permission from a player.
/// </summary>
/// <param name="steamId"> The Steam ID of the player. </param>
void ClearPermission(ulong steamId);
}
Loading