[Bb-trac] [bbPress] #732: bbPress needs a per forum permissions structure

bbPress bb-trac at lists.bbpress.org
Tue Aug 21 08:18:11 GMT 2007


#732: bbPress needs a per forum permissions structure
-------------------------+--------------------------------------------------
 Reporter:  _ck_         |       Owner:         
     Type:  enhancement  |      Status:  new    
 Priority:  normal       |   Milestone:         
Component:  Back-end     |     Version:  0.8.2.1
 Severity:  normal       |    Keywords:         
-------------------------+--------------------------------------------------
 Just like users have roles with permissions, bbPress needs a structure for
 each forum (as every mature forum program has). This makes tasks like
 private forums and read-only forums incredibly easier. In the future you
 are adding trackback/ping ability - what if you only want that ability on
 one individual forum and block it for the rest? etc.

 Imagine the task for making one forum out of several read-only. This task
 becomes virtually impossible without hacking the core. If there was a
 serialized array as a column in the forums table, it becomes trivial to
 add
 {{{
 bb_set_forum_can_be_read(3,'participate')
 bb_set_forum_can_be_written(3,'moderate')
 }}}
 In that example you'd have to be logged in to read the forum, and a
 moderator or above would be able to write to it.

 Along this line of thought, in addition to permissions per forum, forums
 also need their own metadata table for columns you cannot yet invision
 that plugins might want to add. For example recalculating views per forum
 everytime a page is loaded is an "expensive" mysql/cpu task. It should be
 stored in metadata.

 (It's suggested right inside the bbpress code that maybe the first test if
 the forums table exists that it should just be loaded at that point
 directly into the cache - I agree!)

-- 
Ticket URL: <http://trac.bbpress.org/ticket/732>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list