Changed permissions to use common permissions dialog.