fedora-infra / mirrormanager2

Rewrite of the MirrorManager application in Flask and SQLAlchemy
https://mirrormanager.fedoraproject.org
GNU General Public License v2.0
65 stars 49 forks source link

Only admins should be able to change "Always up to date" #186

Closed adrianreber closed 8 years ago

adrianreber commented 8 years ago

The checkbox "Always up to date" in the "host category" should only be available for admins so that it is not accidentally selected like:

https://fedorahosted.org/fedora-infrastructure/ticket/5454

pypingou commented 8 years ago

It seems it is already only shown to admins: https://github.com/fedora-infra/mirrormanager2/blob/master/mirrormanager2/templates/fedora/host_category_new.html#L23

adrianreber commented 8 years ago

Even better. Then the flag (in the referenced fedora-infrastructure ticket) must have been set when it was still available to every user.

pypingou commented 8 years ago

Checked locally and the settings is also not available when adding or editing the cateogory of a host.