Merge "Fixing wrong arguments used for permission check" into qt-dev
am: fa54e4b62a

Change-Id: If6d1f331ddd3f81959d1ee33f686e4eae5aba7f6