Check if popup should be shown 69/135969/3
authorZofia Abramowska <z.abramowska@samsung.com>
Fri, 30 Jun 2017 16:32:12 +0000 (18:32 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Fri, 30 Jun 2017 16:44:27 +0000 (18:44 +0200)
commitdc6c587a6a7c34974b7cc5c3b3713ab6aef8612e
tree106df36d404d0cb8bb53c859b5c62e73263ab06b
parent0b458a12846079bd35eca41feb22c98babc90b13
Check if popup should be shown

Application can use askuser-notification API to show user
popup requesting permission to privilege. These popups have
high priority and abusing this API might make system unusable.
This commit makes askuser-notification check if policy for
application is not yet set (is not "Allow" or "Deny"). Only then
requested popup is shown.

Change-Id: Ibc9696bea24831f77c1ca71314122dca0b52798f
src/notification-daemon/Logic.cpp
src/notification-daemon/Logic.h
src/notification-daemon/policy/Policy.cpp
src/notification-daemon/policy/Policy.h