mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Allow subtitle downloads for Admin users even if the EnableSubtitleManagement is disabled
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
WARN('User or Policy not available');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (user.Policy.IsAdministrator) {
|
||||
LOG('User is admin, has subtitle management permission');
|
||||
return true;
|
||||
}
|
||||
|
||||
const hasPermission = user.Policy.EnableSubtitleManagement;
|
||||
LOG('Subtitle management permission:', hasPermission);
|
||||
|
||||
Reference in New Issue
Block a user