Fix view groups permissions

Merged Jose Luis Zanotti requested to merge T5739 into 12.0

Merge request reports