-
Improvement
-
Resolution: Fixed
-
Minor
-
3.1.0-b3
the section should basically be something like
if ($s_cannot_edit)
|
{
|
trigger_error('USER_CANNOT_EDIT');
|
}
|
|
if ($s_cannot_edit_time)
|
{
|
trigger_error('CANNOT_EDIT_TIME');
|
}
|
|
if ($s_cannot_edit_locked)
|
{
|
trigger_error('CANNOT_EDIT_POST_LOCKED');
|
}
|
So extensions can overwrite each condition.
The $edit_allowed in viewforum.php needs a similar event and the section must be changed accordingly:
$edit_allowed = ($user->data['is_registered'] && ($auth->acl_get('m_edit', $forum_id) || (
|
!$s_cannot_edit &&
|
!$s_cannot_edit_locked &&
|
!$s_cannot_edit_time
|
)));
|