Skip to content

Branch unprotection restrictions disable UI

James Edwards-Jones requested to merge jej/branch-unprotection-disable-ui into master

What

Disables the update/unprotect UI when a protected branch has restrictions added to control which users can do so.

Why

Visually inform users that they are unable to perform an action. Previously clicking "Unprotect" sent the user to a blank page and update attempts presumably resulted in a javascript error.

These restrictions are currently set through the API and this MR updates the UI to reflect that.

Screenshots

Screen_Shot_2018-04-09_at_10.24.05__50_

Does this MR meet the acceptance criteria?

Related

Edited by Grzegorz Bizon

Merge request reports