Save content with current user roles and add filter to show only content with current user role Using drupal 7,
when creating new content of the type "Document"
the current user roles must be added so I can later on show only Documents of his current role.

For example, we have the following user: this is Jake, he is a Firefighter. He creates a document about the dangers and pitfalls of being a firefighter. This is only relevant for Firefighters. So in the list of documents (view) I want Jake and all other Firefighters only to see Firefighter Documents.

So if Jake create new content of the type "document" I want to add his user roles 
and later on add a filter in the view so only Firefighters get to see Firefighter Documents

I want to have the following filter for the list Document view:


Published = true
Content type = Document
User role = current user roles (Firefighter in this case)


Access must be restricted for every user based on their role.
For example, Jake the Firefighter is not allowed to view Policemen Documents
You don't have to add author's role to a node directly. 
You can add user's role based Exposed Filter option in a view by using relationship. To do this please follow steps of below:


Create your view as usual (like configure view name, display type
etc)
From Fields section add all desire fields.
From Filter Criteria choose appropriate node type.
Click on the Advanced button (indicated by an arrow on right side of the view).
Click on the Add button of the Relationship section and add Content: Author as a relationship. 
Now Click on the Add button of the Filter Criteria section and add User: Roles as a filter. In this filter settings pop-up form, enable or check Expose this filter to visitors, to allow them to change it option then choose Is one of option as an operator.


Output/result: