Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
d2a25d07
Commit
d2a25d07
authored
May 10, 2017
by
Tugce Nur Tas
Committed by
Tuğçe Nur Taş
May 12, 2017
Browse files
superadmin wont see a button for delete its own account
parent
732eb328
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/users/show.html.slim
View file @
d2a25d07
...
...
@@ -7,3 +7,6 @@
.col-md-4
strong
=
t_attr
(
:role
)
.col-md-8
=
t
(
"role.
#{
@user
.
role
}
"
)
-
if
policy
(
@user
).
destroy?
=
link_to
t_action
(
:destroy
),
@user
,
data:
{
confirm:
t
(
'are_you_sure'
)},
method: :delete
,
class:
'btn btn-danger'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment