From 6aed8bf8a104693928bec7958978f273fec6531a Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Mon, 30 Jun 2014 10:59:46 -0700 Subject: #369 Don't allow change password if not settingsRole --- src/github/daneren2005/dsub/fragments/AdminFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { 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); } } -- cgit v1.2.3