From 1dcd328ef4eeaf61117080f41721339a25be6f0b Mon Sep 17 00:00:00 2001 From: candry7731 <83685828+candry7731@users.noreply.github.com> Date: Tue, 7 Feb 2023 15:56:24 -0600 Subject: [PATCH] Add user policy to check if canDelete --- source/api/userauth.brs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/api/userauth.brs b/source/api/userauth.brs index a98618a4..8636b1d4 100644 --- a/source/api/userauth.brs +++ b/source/api/userauth.brs @@ -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()