int RestrictionPolicy::getClipboardState()
{
- return context.getPolicy<int>("clipboard");
+ return context.getPolicy<int>("clipboard", context.getPeerUid());
}
int RestrictionPolicy::setUsbDebuggingState(int enable)
try {
SetPolicyAllowed(context, "browser", enable);
} catch (runtime::Exception& e) {
- ERROR("Failed to enforce browser [olicy");
+ ERROR("Failed to enforce browser policy");
return -1;
}
return 0;
int RestrictionPolicy::getBrowserState()
{
- return context.getPolicy<int>("browser");
+ return context.getPolicy<int>("browser", context.getPeerUid());
}
DEFINE_POLICY(RestrictionPolicy);