Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
07dfbcdc
Commit
07dfbcdc
authored
Aug 10, 2018
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo
parent
95ea9692
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Menu.kt
app/src/main/java/chat/rocket/android/main/ui/Menu.kt
+1
-1
PermissionsInteractor.kt
...hat/rocket/android/server/domain/PermissionsInteractor.kt
+1
-1
No files found.
app/src/main/java/chat/rocket/android/main/ui/Menu.kt
View file @
07dfbcdc
...
@@ -34,7 +34,7 @@ internal fun MainActivity.setupMenu(menu: Menu) {
...
@@ -34,7 +34,7 @@ internal fun MainActivity.setupMenu(menu: Menu) {
R
.
string
.
title_settings
R
.
string
.
title_settings
).
setIcon
(
R
.
drawable
.
ic_settings_black_24dp
)
).
setIcon
(
R
.
drawable
.
ic_settings_black_24dp
)
if
(
permissions
.
canSeeTheAdmin
Chan
nel
())
{
if
(
permissions
.
canSeeTheAdmin
Pa
nel
())
{
menu
.
add
(
menu
.
add
(
R
.
id
.
menu_section_two
,
R
.
id
.
menu_section_two
,
R
.
id
.
menu_action_admin_panel
,
R
.
id
.
menu_action_admin_panel
,
...
...
app/src/main/java/chat/rocket/android/server/domain/PermissionsInteractor.kt
View file @
07dfbcdc
...
@@ -69,7 +69,7 @@ class PermissionsInteractor @Inject constructor(
...
@@ -69,7 +69,7 @@ class PermissionsInteractor @Inject constructor(
}
}
fun
canSeeTheAdmin
Chan
nel
():
Boolean
{
fun
canSeeTheAdmin
Pa
nel
():
Boolean
{
currentServerUrl
()
?.
let
{
serverUrl
->
currentServerUrl
()
?.
let
{
serverUrl
->
val
viewStatistics
=
val
viewStatistics
=
permissionsRepository
.
get
(
serverUrl
,
VIEW_STATISTICS
)
permissionsRepository
.
get
(
serverUrl
,
VIEW_STATISTICS
)
...
...
Write
Preview
Markdown
is supported
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