Skip to content

Hide form inputs for group member without editing rights

kushalpandya requested to merge 24861-stringify-group-member-details into master

What does this MR do?

While viewing Members list of any group, if viewer doesn't have editing rights (eg; change member role or expiration date of membership) he/she should not see form inputs (which are currently disabled), instead he should see role and expiration date as labels, this MR does that.

Are there points in the code the reviewer needs to double check?

Only file modified in this MR is _member.html.haml, in which the member.expires_at.to_time.in_time_zone.to_s(:medium) retrieves date and time of expiration of membership, but it doesn't retrieve Timezone in GMT, should we alter this method call (with strftime may be) to include Timezone?

Why was this MR needed?

See issue #24861 (closed)

Screenshots (if relevant)

Members_List

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #24861 (closed)

Merge request reports