Merge pull request #1023 from candry7731/Content-deletion

Add user policy to check if canDelete
This commit is contained in:
1hitsong 2023-02-07 20:42:14 -05:00 committed by GitHub
commit 1243281896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,6 +155,11 @@ sub LoadUserAbilities(user)
else
set_user_setting("livetv.canrecord", "false")
end if
if user.Policy.EnableContentDeletion = true
set_user_setting("content.candelete", "true")
else
set_user_setting("content.candelete", "false")
end if
end sub
function initQuickConnect()