fds
This commit is contained in:
parent
450c7c4b15
commit
d72ea9843e
1 changed files with 2 additions and 1 deletions
|
@ -825,8 +825,9 @@ def settings_css_get(v):
|
||||||
@auth_required
|
@auth_required
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def settings_css(v):
|
def settings_css(v):
|
||||||
css = request.values.get("css").strip().replace('\\', '').strip()[:4000]
|
if v.agendaposter: return {"error": "Agendapostered users can edit css!"}
|
||||||
|
|
||||||
|
css = request.values.get("css").strip().replace('\\', '').strip()[:4000]
|
||||||
v.css = css
|
v.css = css
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue