allow resources to decide for themselves if they want to be personal
[jelmer/calypso.git] / calypso / acl / pam.py
index 50a98399924d2c42b90fac2fc52e6eefb5a11492..03ce041ae116ff4c0f27fa08470984cc2976958a 100644 (file)
@@ -31,12 +31,11 @@ from calypso import config
 
 LOG = logging.getLogger()
 SVC = config.get("acl", "pam_service")
-PERSONAL = config.getboolean("acl", "personal")
 
 def has_right(entity, user, password):
     """Check if ``user``/``password`` couple is valid."""
     LOG.debug("entity %s user %s", entity, user)
-    if entity.owner and entity.owner != user and PERSONAL:
+    if entity.owner and entity.owner != user and entity.personal:
         return False
     def pam_conv(auth, query_list, userData):
         result = []