WIP refactoring AuthService
Keeping query permissions up to date after save/update query.
Forgot to add file.
Use function declaration for inner function in share modal
Merge pull request #1505 from opf/fix/auth-for-wp-export

Fix/auth for wp export