mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 14:45:47 +03:00
fix wrong condition
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
35533e1264
commit
7014ad133a
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ object MDMConfig {
|
||||||
|
|
||||||
val shareViaLink = context.resources.getBoolean(R.bool.share_via_link_feature)
|
val shareViaLink = context.resources.getBoolean(R.bool.share_via_link_feature)
|
||||||
|
|
||||||
return shareViaLink && disableShareViaMDM
|
return shareViaLink && !disableShareViaMDM
|
||||||
}
|
}
|
||||||
|
|
||||||
fun shareViaUser(context: Context): Boolean {
|
fun shareViaUser(context: Context): Boolean {
|
||||||
|
@ -44,7 +44,7 @@ object MDMConfig {
|
||||||
|
|
||||||
val shareViaUsers = context.resources.getBoolean(R.bool.share_with_users_feature)
|
val shareViaUsers = context.resources.getBoolean(R.bool.share_with_users_feature)
|
||||||
|
|
||||||
return shareViaUsers && disableShareViaMDM
|
return shareViaUsers && !disableShareViaMDM
|
||||||
}
|
}
|
||||||
|
|
||||||
fun sendFilesSupport(context: Context): Boolean {
|
fun sendFilesSupport(context: Context): Boolean {
|
||||||
|
|
Loading…
Reference in a new issue