2020-05-02 21:56:05 +00:00
|
|
|
namespace Jellyfin.Data.Enums
|
|
|
|
{
|
2020-05-19 23:44:55 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The types of user permissions.
|
|
|
|
/// </summary>
|
2020-05-13 02:10:35 +00:00
|
|
|
public enum PermissionKind
|
2020-05-02 21:56:05 +00:00
|
|
|
{
|
2020-05-19 23:44:55 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Whether the user is an administrator.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
IsAdministrator = 0,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user is hidden.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
IsHidden = 1,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user is disabled.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
IsDisabled = 2,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can control shared devices.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableSharedDeviceControl = 3,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can access the server remotely.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableRemoteAccess = 4,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can manage live tv.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableLiveTvManagement = 5,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can access live tv.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableLiveTvAccess = 6,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can play media.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableMediaPlayback = 7,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the server should transcode audio for the user if requested.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableAudioPlaybackTranscoding = 8,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the server should transcode video for the user if requested.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableVideoPlaybackTranscoding = 9,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can delete content.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableContentDeletion = 10,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can download content.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableContentDownloading = 11,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether to enable sync transcoding for the user.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableSyncTranscoding = 12,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can do media conversion.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableMediaConversion = 13,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user has access to all devices.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableAllDevices = 14,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user has access to all channels.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableAllChannels = 15,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user has access to all folders.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableAllFolders = 16,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether to enable public sharing for the user.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnablePublicSharing = 17,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can remotely control other users.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnableRemoteControlOfOtherUsers = 18,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user is permitted to do playback remuxing.
|
|
|
|
/// </summary>
|
2020-05-20 13:36:12 +00:00
|
|
|
EnablePlaybackRemuxing = 19,
|
2020-05-19 23:44:55 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the server should force transcoding on remote connections for the user.
|
|
|
|
/// </summary>
|
2023-02-13 14:42:04 +00:00
|
|
|
ForceRemoteSourceTranscoding = 20,
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the user can create, modify and delete collections.
|
|
|
|
/// </summary>
|
|
|
|
EnableCollectionManagement = 21
|
2020-05-02 21:56:05 +00:00
|
|
|
}
|
|
|
|
}
|