mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
added some user access settings
This commit is contained in:
@@ -101,6 +101,11 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
/// <exception cref="System.ArgumentNullException">user</exception>
|
||||
public Task LogConnectionActivity(string clientType, string deviceId, string deviceName, User user)
|
||||
{
|
||||
if (user != null && user.Configuration.IsDisabled)
|
||||
{
|
||||
throw new UnauthorizedAccessException(string.Format("The {0} account is currently disabled. Please consult with your administrator.", user.Name));
|
||||
}
|
||||
|
||||
var activityDate = DateTime.UtcNow;
|
||||
|
||||
GetConnection(clientType, deviceId, deviceName, user).LastActivityDate = activityDate;
|
||||
|
||||
Reference in New Issue
Block a user