diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-17 23:26:36 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-17 23:26:36 +0100 |
commit | 57c43e7994d1615d4d9d0d6c062239cd721f0b7b (patch) | |
tree | b41eb78c99ad195aecee9afa49d9b86ecd684e37 /app/views/packages.py | |
parent | 67f028f6fc4b599dd9760f5eaa5961f35d535ef8 (diff) | |
download | cheatdb-57c43e7994d1615d4d9d0d6c062239cd721f0b7b.tar.xz |
Move create and work queue to user drop down
Diffstat (limited to 'app/views/packages.py')
-rw-r--r-- | app/views/packages.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/views/packages.py b/app/views/packages.py index 70c36cf..087a83f 100644 --- a/app/views/packages.py +++ b/app/views/packages.py @@ -63,13 +63,6 @@ def packages_page(): return render_template("packages/list.html", title=title, packages=query.all(), \ query=search, tags=tags, type=None if type is None else type.toName()) - -def canSeeWorkQueue(): - return Permission.APPROVE_NEW.check(current_user) or \ - Permission.APPROVE_RELEASE.check(current_user) or \ - Permission.APPROVE_CHANGES.check(current_user) - -@menu.register_menu(app, ".todo", "Work Queue", order=20, visible_when=canSeeWorkQueue) @app.route("/todo/") @login_required def todo_page(): @@ -138,7 +131,6 @@ class PackageForm(FlaskForm): forums = IntegerField("Forum Topic ID", [InputRequired(), NumberRange(0,999999)]) submit = SubmitField("Save") -@menu.register_menu(app, ".new", "Create", order=21, visible_when=lambda: current_user.is_authenticated) @app.route("/packages/new/", methods=["GET", "POST"]) @app.route("/packages/<author>/<name>/edit/", methods=["GET", "POST"]) @login_required |