diff options
author | zsloan | 2020-01-14 16:29:13 -0600 |
---|---|---|
committer | zsloan | 2020-01-14 16:29:13 -0600 |
commit | 444a3755aade439ebdab5a053360c50544d41d59 (patch) | |
tree | e21e77922edca759daed2a4b6cf07d4e70e97946 | |
parent | d95c22cccff6b89e6a446e500fce0d103af23e3c (diff) | |
download | genenetwork2-444a3755aade439ebdab5a053360c50544d41d59.tar.gz |
Temporary fix to ensure no one but Rob or me can edit editable pages
-rw-r--r-- | wqflask/wqflask/docs.py | 11 |
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'] |