AgileVentures / AgileVentures/WebsiteOne

Add /admin route and page that only Admins can access.

Đang mở
#3,829 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
help wanted
Ngôn ngữ chính
Ruby
Star
144
Fork
239
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Add a special 'admin' interface that would allow authorized people to do maintenance on the app. For example deactivate/delete spam users and/or projects, load the static pages, 'pin' important projects to the top of the Projects page.

Options:
- rolify and pundit gems
- https://github.com/activeadmin/activeadmin
- https://docs.avohq.io/2.0/installation.html (newer)

Feature: Admin page
As an admin user
So that I can perform admin tasks
I want to be able to use the admin page

Scenario: Access admin page
Given I have logged in as an admin
When I am on the “Administration” page
Then I should see “AV Administration” on the page

Scenario: Deny access to admin page
Given I have logged in as a non-admin
When I try to go to the “Administration” page
Then I should see an error message

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.