Closed (outdated)
Project:
Forum Access
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Oct 2010 at 10:02 UTC
Updated:
11 Apr 2018 at 14:24 UTC
Jump to comment: Most recent
Comments
Comment #1
salvisThe forum_access_access() function checks access. However, there's no API for adding/removing access. This is done in _forum_access_form_submit(), where the form values are evaluated and applied.
It might make sense to provide an API for this — I'll review a patch if you provide one. Keep in mind that the operation may be a costly one, if we need to update a forum with many nodes. Presently, all records for all roles and all nodes in the given forum are purged and re-set from scratch. This may need to be a batch operation, so all roles need to be processed in one swoop.
Comment #2
dillix commented