Fix Password tab visible to users without permission

Related to #11623 

Show tabs in profile after check of change_password for passwords and view_document for recently edited documents.