We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b50d5 commit b0832ebCopy full SHA for b0832eb
1 file changed
lib/atomic_web/config.ex
@@ -16,23 +16,10 @@ defmodule AtomicWeb.Config do
16
if has_permissions?(current_user, current_organization) do
17
admin_pages(current_organization)
18
else
19
- user_pages()
+ default_pages()
20
end
21
22
23
- def user_pages do
24
- default_pages() ++
25
- [
26
- %{
27
- key: :scanner,
28
- title: "Scanner",
29
- icon: "hero-qr-code",
30
- url: ~p"/scanner",
31
- tabs: []
32
- }
33
- ]
34
- end
35
-
36
def admin_pages(current_organization) do
37
default_pages() ++
38
[
@@ -56,13 +43,6 @@ defmodule AtomicWeb.Config do
56
43
icon: "hero-user-group",
57
44
url: ~p"/organizations/#{current_organization}/partners",
58
45
tabs: []
59
- },
60
61
62
63
64
65
66
46
}
67
47
]
68
48
0 commit comments