Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-10-25 03:36:28 -0400
committerChristian W. Damus2013-10-25 11:20:05 -0400
commit1851055a45b9e47e92949ff4a4dd6d99c831fdfb (patch)
tree25bfba9e6146d33316a48ead249305a479b7dfff /plugins/org.eclipse.emf.cdo.server.security
parent98dd1927de57f31ef26e6f265a2879eec3ba350c (diff)
downloadcdo-1851055a45b9e47e92949ff4a4dd6d99c831fdfb.tar.gz
cdo-1851055a45b9e47e92949ff4a4dd6d99c831fdfb.tar.xz
cdo-1851055a45b9e47e92949ff4a4dd6d99c831fdfb.zip
[399306] [Security] Add password management
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399306
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.security')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java b/plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java
index 9645bb3169..89fd03b71f 100644
--- a/plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java
+++ b/plugins/org.eclipse.emf.cdo.server.security/src/org/eclipse/emf/cdo/server/internal/security/SecurityManager.java
@@ -7,7 +7,7 @@
*
* Contributors:
* Eike Stepper - initial API and implementation
- * Christian W. Damus (CEA LIST) - 399306
+ * Christian W. Damus (CEA LIST) - bug 399306
*/
package org.eclipse.emf.cdo.server.internal.security;
@@ -797,19 +797,19 @@ public class SecurityManager extends Lifecycle implements InternalSecurityManage
protected final boolean isAdministrator(User user)
{
- // an administrator is one that has write permission on the realm resource
+ // An administrator is one that has write permission on the realm resource
Realm realm = getRealm();
-
if (realm != null)
{
- // can't be an administrator if there isn't a realm
+ // Can't be an administrator if there isn't a realm
CDORevision revision = realm.cdoRevision();
CDORevisionProvider revisionProvider = realm.cdoView();
CDOBranchPoint securityContext = realm.cdoView();
- for (Permission next : user.getAllPermissions())
+ for (Permission permission : user.getAllPermissions())
{
- if (next.getAccess() == Access.WRITE && next.isApplicable(revision, revisionProvider, securityContext))
+ if (permission.getAccess() == Access.WRITE
+ && permission.isApplicable(revision, revisionProvider, securityContext))
{
return true;
}

Back to the top