aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/docs.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/wqflask/wqflask/docs.py b/wqflask/wqflask/docs.py
index f45202af..1dbbabea 100644
--- a/wqflask/wqflask/docs.py
+++ b/wqflask/wqflask/docs.py
@@ -22,10 +22,13 @@ class Docs(object):
self.title = result[0]
self.content = result[1]
- if 'edit' in start_vars and start_vars['edit'] == "true":
- self.editable = "true"
- else:
- self.editable = "false"
+ self.editable = "false"
+ try:
+ if g.user_session.record['user_email_address'] == "zachary.a.sloan@gmail.com" or g.user_session.record['user_email_address'] == "labwilliams@gmail.com":
+ self.editable = "true"
+ except:
+ pass
+
def update_text(start_vars):
content = start_vars['ckcontent']