summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/src/package_privacy_list_view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/src/package_privacy_list_view.c b/ui/src/package_privacy_list_view.c
index d36b99d..407ece3 100644
--- a/ui/src/package_privacy_list_view.c
+++ b/ui/src/package_privacy_list_view.c
@@ -129,7 +129,13 @@ static void package_privacy_check_changed_cb(void *data, Evas_Object *obj, void
int ret = 0;
char* level;
if (pd->status) {
- level = "Ask user";
+ bool privacy_requestable = false;
+ ret = privilege_package_info_is_privacy_requestable(getuid(), pp_apd->pkgid, &privacy_requestable);
+ log_if(ret != PRVMGR_ERR_NONE, 1, "privilege_package_info_is_privacy_requestable failed");
+ if (privacy_requestable)
+ level = "Ask user";
+ else
+ level = "Deny";
pd->status = false;
__terminate_app();
} else {