browsermedia / browsercms

BrowserCMS: Humane Content Management for Rails
http://browsercms.org
GNU Lesser General Public License v3.0
1.17k stars 260 forks source link

Password protected sections? #732

Closed thejrose1984 closed 10 years ago

thejrose1984 commented 10 years ago

Is it possible to use BrowserCMS to create protected sections of a website developed in Ruby on Rails? Just looking to have a visit be prompted for a username and password if they go to a section (e.g. www.mysite.com/training).

Not sure if this feature has been added to newer versions of BrowserCMS but haven't seen anything. Please advise and thank you in advance.

peakpg commented 10 years ago

The core behavior of BrowserCMS allows you to mark sections which should be restricted, by group (i.e. Members, customers, etc). See https://github.com/browsermedia/browsercms/wiki/User's-manual

You can also mix this behavior into your Rails application, though it requires some custom coding to do so: See https://github.com/browsermedia/browsercms/wiki/Adding-BrowserCMS-to-an-existing-Rails-project for some additional info.

thejrose1984 commented 10 years ago

If I'm understanding the wiki correctly, you need to create a group and affiliated user with access to the restricted area. However, in order to see the restricted area, the user either needs to login to BrowserCMS or custom code needs to be added. Correct?