fix: glab can not set group level variable masked or masked and hidden

Description

Now setting MaskedAndHidden when --hidden is explicitly passed, else leaving it nil so that omitempty drops it from the JSON body.
Applied to both the group level and project level variable creation paths

Resolves #7812 (closed)

How has this been tested?

Using UTs.

Screenshots (if appropriate):

Edited by Syed Saif Ali Alvi

Merge request reports

Loading
Loading