diff options
author | daneren2005 <daneren2005@gmail.com> | 2014-06-30 10:59:46 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2014-06-30 10:59:46 -0700 |
commit | 6aed8bf8a104693928bec7958978f273fec6531a (patch) | |
tree | c90859afed0e178eb16537fba5b9902002805b47 /src | |
parent | 40d6b10e23800fff096f99677d2812f3a0efb599 (diff) | |
download | dsub-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.java | 2 |
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);
}
}
|