mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 16:45:18 +08:00
Enable details tab on workspace [SCI-12232]
This commit is contained in:
parent
dfb3800ef3
commit
2c036f6199
3 changed files with 4 additions and 10 deletions
|
@ -28,8 +28,6 @@ module Users
|
|||
members
|
||||
)
|
||||
|
||||
before_action :check_read_permissions, only: :show
|
||||
|
||||
before_action :check_create_team_permission,
|
||||
only: %i(new create)
|
||||
|
||||
|
@ -140,10 +138,6 @@ module Users
|
|||
render_403 unless can_create_teams?
|
||||
end
|
||||
|
||||
def check_read_permissions
|
||||
render_403 unless can_read_team?(@team)
|
||||
end
|
||||
|
||||
def load_user
|
||||
@user = current_user
|
||||
end
|
||||
|
|
|
@ -7,8 +7,8 @@ module Users
|
|||
before_action :set_breadcrumbs_items, only: %i(index show)
|
||||
before_action :check_user_groups_enabled
|
||||
before_action :load_user_group, except: %i(index unassigned_users actions_toolbar create)
|
||||
before_action :check_read_permissions, only: %i(index show unassigned_users actions_toolbar users)
|
||||
before_action :check_manage_permissions, except: %i(index show unassigned_users actions_toolbar users)
|
||||
before_action :check_read_permissions, only: %i(users)
|
||||
before_action :check_manage_permissions, except: %i(users)
|
||||
|
||||
def index
|
||||
respond_to do |format|
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-4 p-2 mb-4 bg-white">
|
||||
<%= link_to t("users.settings.teams.navigation.details"), team_path(@team), class: "p-2.5 hover:no-underline #{ 'disabled' unless can_read_team?(@team) } #{ @active_tab == :details ? "text-sn-blue" : "text-sn-grey" }"%>
|
||||
<%= link_to t("users.settings.teams.navigation.details"), team_path(@team), class: "p-2.5 hover:no-underline #{ @active_tab == :details ? "text-sn-blue" : "text-sn-grey" }"%>
|
||||
<%= link_to t("users.settings.teams.navigation.members"), members_users_settings_team_path(@team), class: "p-2.5 hover:no-underline #{ @active_tab == :members ? "text-sn-blue" : "text-sn-grey" }"%>
|
||||
<%= link_to t("users.settings.teams.navigation.groups"), users_settings_team_user_groups_path(@team), class: "p-2.5 hover:no-underline #{ 'disabled' unless can_read_team?(@team) } #{ @active_tab == :user_groups ? "text-sn-blue" : "text-sn-grey" }"%>
|
||||
<%= link_to t("users.settings.teams.navigation.groups"), users_settings_team_user_groups_path(@team), class: "p-2.5 hover:no-underline #{ 'disabled' unless can_manage_team?(@team) } #{ @active_tab == :user_groups ? "text-sn-blue" : "text-sn-grey" }"%>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue