As a customer, I’m not likely to visit the `Users` page to create a personal access token. Let’s make it easier to find by moving it to its own page and adding it to the sidebar.
11 lines
397 B
Plaintext
11 lines
397 B
Plaintext
<% tabs = [
|
|
(["User Management", @project_data[:path] + "/user"] if has_project_permission("Project:user")),
|
|
(
|
|
if has_project_permission("Project:viewaccess")
|
|
["Access Control", @project_data[:path] + "/user/access-control", request.path.include?("/user/access-control")]
|
|
end
|
|
)
|
|
]
|
|
tabs.compact! %>
|
|
<%== render("components/tabbar", locals: { tabs: tabs }) if tabs.length >= 2 %>
|