Added permissions to actionPermissions variable - gallery ajaxpage