From f7aa2f39d500d95bdf6cd3c28741c7f1eb2d4fa6 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 16 Feb 2016 08:42:36 +0100 Subject: Removed the possibility to see the list of feeds of a user. A new column in the table from of dashboard has been added. --- src/web/views/admin.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/web/views') diff --git a/src/web/views/admin.py b/src/web/views/admin.py index 753b864f..30758f63 100644 --- a/src/web/views/admin.py +++ b/src/web/views/admin.py @@ -7,7 +7,7 @@ from flask.ext.principal import Permission, RoleNeed from web.lib.utils import redirect_url from web.models import Role -from web.controllers import UserController, ArticleController, FeedController +from web.controllers import UserController, ArticleController from web.forms import InformationMessageForm, UserForm from web import notifications @@ -130,19 +130,6 @@ def delete_user(user_id=None): '%(error)', error=error), 'danger') return redirect(redirect_url()) -@admin_bp.route('/delete/', methods=['GET']) -@login_required -@admin_permission.require(http_exception=403) -def delete(feed_id=None): - "Deletes the feed of a user." - try: - feed = FeedController().delete(feed_id) - flash(gettext("Feed successfully deleted."), 'success') - except Exception as error: - flash('An error occured while trying to delete a feed: ' - + str(error), 'danger') - return redirect(url_for('home')) - @admin_bp.route('/toggle_user/', methods=['GET']) @login_required @admin_permission.require() -- cgit