X-Git-Url: https://svn.cri.ensmp.fr/git/photoprint.git/blobdiff_plain/4108abadea5456a9d832614c32b93925425f6904..4bb6988027b9396a5f0ed10509f15dc2a230c61c:/skins/validatePrivateAccess.py?ds=sidebyside

diff --git a/skins/validatePrivateAccess.py b/skins/validatePrivateAccess.py
index 19e3a7d..7fc6530 100755
--- a/skins/validatePrivateAccess.py
+++ b/skins/validatePrivateAccess.py
@@ -1,15 +1,16 @@
 ##parameters=**kw
+from Products.photoprint.utils import grantAccess
 kg = lambda name : kw.get(name,'').strip()
 
-weddingId = kg('wedding_id')
-if not weddingId :
+collectionId = kg('collection_id')
+if not collectionId :
 	return True
 
 else :
-	password = kg('wedding_password')
-	confirm = kg('wedding_password_confirm')
+	password = kg('collection_password')
+	confirm = kg('collection_password_confirm')
 	memberId = kg('member_id')
-	msg = context.grantAccess(context, weddingId, password, confirm, memberId)
+	msg = grantAccess(collectionId, password, confirm, memberId)
 	if msg :
 		return context.setStatus(False, msg)
 	else :