OPENGadget27 wrote:But Is it possible to enable the founder to edit all the posts admin
Code: Select all
if ($is_authed && ($mode == 'edit' || $mode == 'delete') && (in_array($post_data['poster_id'], $admin_only_arry) && $user->data['user_id'] != $post_data['poster_id']))
Code: Select all
if ($is_authed && ($mode == 'edit' || $mode == 'delete') && (in_array($post_data['poster_id'], $admin_only_arry) && $user->data['user_id'] != $post_data['poster_id']) && !$user->data['user_type'] == USER_FOUNDER)
Code: Select all
'U_EDIT' => (!$user->data['is_registered']) ? '' : ((($user->data['user_id'] == $poster_id && $auth->acl_get('f_edit', $forum_id) && ($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])) || ($auth->acl_get('m_edit', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=edit&f=$forum_id&p={$row['post_id']}") : ''),
Code: Select all
'U_EDIT' => (!$user->data['is_registered']) ? '' : ((($user->data['user_id'] == $poster_id && $auth->acl_get('f_edit', $forum_id) && ($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])) || ($auth->acl_get('m_edit', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id) || $user->data['user_type'] == USER_FOUNDER) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=edit&f=$forum_id&p={$row['post_id']}") : ''),
Code: Select all
'U_DELETE' => (!$user->data['is_registered']) ? '' : ((($user->data['user_id'] == $poster_id && $auth->acl_get('f_delete', $forum_id) && $topic_data['topic_last_post_id'] == $row['post_id'] && !$row['post_edit_locked'] && ($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])) || ($auth->acl_get('m_delete', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=delete&f=$forum_id&p={$row['post_id']}") : ''),
Code: Select all
'U_DELETE' => (!$user->data['is_registered']) ? '' : ((($user->data['user_id'] == $poster_id && $auth->acl_get('f_delete', $forum_id) && $topic_data['topic_last_post_id'] == $row['post_id'] && !$row['post_edit_locked'] && ($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])) || ($auth->acl_get('m_delete', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id) || $user->data['user_type'] == USER_FOUNDER) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=delete&f=$forum_id&p={$row['post_id']}") : ''),
It means that only the Admin user that made the post can edit their own post. Moderators can not and other Admins can not edit that Admin's post.Jarex wrote:It means this mod does not aply for Moderators editing Admins posts, am I right?
I am assuming you are testing by clicking on the link that allows an Admin to assume anothers permissions? I'm not sure how that works but I would sign up another user, change that users permissions to global moderator (make the new user hidden). Then log in as that user and try to edit one of your admin posts.Jarex wrote:When testing Mods rights still can do that.