milesj / forum

[Deprecated] A CakePHP plugin for forum / bulletin board systems.
MIT License
131 stars 57 forks source link

Scoped / Polymorphic Forums #52

Closed josephzidell closed 10 years ago

josephzidell commented 10 years ago

There are customers and there are rentals. The job is to have a forum for each customer, as well as for each Rental. Each customer or rental should have its own set of topics.

Can this be done (fairly) easily using your plugin, or will I have to modify every find() operation?

milesj commented 10 years ago

You can create separate forums for each type, and create separate ACL groups for each type. Then simply set the access for each forum to the ACL group.

josephzidell commented 10 years ago

So, forum has_many topic has_many post?

milesj commented 10 years ago

Yup.

josephzidell commented 10 years ago

That's great design! The only issue is I've never used ACL (read about it, but never used it). Is there an easy way to set this up?

milesj commented 10 years ago

It's part of the admin plugin within the forum plugin.

http://milesj.me/code/cakephp/admin

josephzidell commented 10 years ago

Thanks!

milesj commented 10 years ago

No problem!