aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/admin.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-16 08:42:36 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-16 08:42:36 +0100
commitf7aa2f39d500d95bdf6cd3c28741c7f1eb2d4fa6 (patch)
tree4c29e6ac003dc9cb0a01cc1c4bd58f7df5dc3df6 /src/web/views/admin.py
parentI now know why my sessios was always lost on Heroku... (diff)
downloadnewspipe-f7aa2f39d500d95bdf6cd3c28741c7f1eb2d4fa6.tar.gz
newspipe-f7aa2f39d500d95bdf6cd3c28741c7f1eb2d4fa6.tar.bz2
newspipe-f7aa2f39d500d95bdf6cd3c28741c7f1eb2d4fa6.zip
Removed the possibility to see the list of feeds of a user. A new column in the table from of dashboard has been added.
Diffstat (limited to 'src/web/views/admin.py')
-rw-r--r--src/web/views/admin.py15
1 files changed, 1 insertions, 14 deletions
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/<feed_id>', 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/<int:user_id>', methods=['GET'])
@login_required
@admin_permission.require()
bgstack15