projects
/
photoprint.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Aide + localisation.
[photoprint.git]
/
skins
/
validatePrivateAccess.py
diff --git
a/skins/validatePrivateAccess.py
b/skins/validatePrivateAccess.py
index
19e3a7d
..
7fc6530
100755
(executable)
--- a/
skins/validatePrivateAccess.py
+++ b/
skins/validatePrivateAccess.py
@@
-1,15
+1,16
@@
##parameters=**kw
##parameters=**kw
+from Products.photoprint.utils import grantAccess
kg = lambda name : kw.get(name,'').strip()
kg = lambda name : kw.get(name,'').strip()
-
weddingId = kg('wedding
_id')
-if not
wedding
Id :
+
collectionId = kg('collection
_id')
+if not
collection
Id :
return True
else :
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')
memberId = kg('member_id')
- msg =
context.grantAccess(context, wedding
Id, password, confirm, memberId)
+ msg =
grantAccess(collection
Id, password, confirm, memberId)
if msg :
return context.setStatus(False, msg)
else :
if msg :
return context.setStatus(False, msg)
else :