Add user policy to check if canDelete

This commit is contained in:
candry7731 2023-02-07 15:56:24 -06:00
parent c0aa736b46
commit 1dcd328ef4

View File

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