aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-06-30 10:59:46 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-06-30 10:59:46 -0700
commit6aed8bf8a104693928bec7958978f273fec6531a (patch)
treec90859afed0e178eb16537fba5b9902002805b47 /src
parent40d6b10e23800fff096f99677d2812f3a0efb599 (diff)
downloaddsub-6aed8bf8a104693928bec7958978f273fec6531a.tar.gz
dsub-6aed8bf8a104693928bec7958978f273fec6531a.tar.bz2
dsub-6aed8bf8a104693928bec7958978f273fec6531a.zip
#369 Don't allow change password if not settingsRole
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/AdminFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/AdminFragment.java b/src/github/daneren2005/dsub/fragments/AdminFragment.java
index 5e14aff5..cbced58c 100644
--- a/src/github/daneren2005/dsub/fragments/AdminFragment.java
+++ b/src/github/daneren2005/dsub/fragments/AdminFragment.java
@@ -70,7 +70,7 @@ public class AdminFragment extends SelectListFragment<User> {
MenuInflater inflater = context.getMenuInflater();
if(UserUtil.isCurrentAdmin()) {
inflater.inflate(R.menu.admin_context, menu);
- } else {
+ } else if(UserUtil.isCurrentRole("settingsRole")) {
inflater.inflate(R.menu.admin_context_user, menu);
}
}