Skip to content

Commit 1b05bb7

Browse files
committed
disabling username when not admin
1 parent 0f12861 commit 1b05bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/users/edit.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
= form_for @user, html: { multipart: true } do |form|
1616
-if !finishing_signup?
1717
= form.label :username
18-
= form.text_field :username, type: 'text', class: 'field block col-12 mb3', disabled: admin?
18+
= form.text_field :username, type: 'text', class: 'field block col-12 mb3', disabled: !admin?
1919
= form.label :email
2020
= form.text_field :email, type: 'email', class: 'field block col-12 mb3', placeholder: "Where we'll send password reset emails"
2121
= form.label :avatar

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy