mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
bugfixes/enhancements
prevent users from trying to set the console's level to owner fix issue with setting multiple owners update/improve unit tests
This commit is contained in:
@ -239,7 +239,7 @@ namespace SharedLibraryCore.Services
|
||||
/// <param name="origin"></param>
|
||||
/// <param name="ctx"></param>
|
||||
/// <returns></returns>
|
||||
public async Task UpdateLevel(Permission newPermission, EFClient temporalClient, EFClient origin)
|
||||
public virtual async Task UpdateLevel(Permission newPermission, EFClient temporalClient, EFClient origin)
|
||||
{
|
||||
using (var ctx = new DatabaseContext())
|
||||
{
|
||||
@ -483,7 +483,7 @@ namespace SharedLibraryCore.Services
|
||||
/// (client level is owner)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<int> GetOwnerCount()
|
||||
public virtual async Task<int> GetOwnerCount()
|
||||
{
|
||||
using (var ctx = new DatabaseContext(true))
|
||||
{
|
||||
|
Reference in New Issue
Block a user