Bugfix when adding permission when a user installs an app