mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add role 'owner' to users (#185)
This commit is contained in:
committed by
GitHub
parent
e86748edca
commit
0e96ff7ad4
@@ -40,7 +40,7 @@
|
||||
<span class="fullname"><%= current_user.full_name %></span>
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<% if current_user.power_user? %>
|
||||
<% if current_user.moderator? %>
|
||||
<%=
|
||||
link_to t('header.menu.site_settings'),
|
||||
current_user.admin? ? site_settings_general_path : site_settings_users_path,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
boards: @boards,
|
||||
postStatuses: @post_statuses,
|
||||
isLoggedIn: user_signed_in?,
|
||||
isPowerUser: user_signed_in? ? current_user.power_user? : false,
|
||||
isPowerUser: user_signed_in? ? current_user.moderator? : false,
|
||||
currentUserFullName: user_signed_in? ? current_user.full_name : nil,
|
||||
currentUserEmail: user_signed_in? ? current_user.email : nil,
|
||||
authenticityToken: form_authenticity_token,
|
||||
|
||||
Reference in New Issue
Block a user