Skip to content

Commit c00dc24

Browse files
committed
Remove last g_post_topics and g_post_replies
1 parent c78bff7 commit c00dc24

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

featherbb/Controller/Admin/Forums.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function edit($req, $res, $args)
8888
$permissions_data['post_replies'] != Input::post('post_replies_old')[$perm_group['g_id']] ||
8989
$permissions_data['post_topics'] != Input::post('post_topics_old')[$perm_group['g_id']]) {
9090
// If there is no group permissions override for this forum
91-
if ($permissions_data['read_forum'] == '1' && $permissions_data['post_replies'] == $perm_group['g_post_replies'] && $permissions_data['post_topics'] == $perm_group['g_post_topics']) {
91+
if ($permissions_data['read_forum'] == '1' && $permissions_data['post_replies'] == $perm_group['topic.reply'] && $permissions_data['post_topics'] == $perm_group['topic.post']) {
9292
$this->model->delete_permissions($args['id'], $perm_group['g_id']);
9393
} else {
9494
// Run an UPDATE and see if it affected a row, if not, INSERT

featherbb/Model/Admin/Forums.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ public function get_permissions($forum_id)
134134
$perm_data = array();
135135
$forum_id = Container::get('hooks')->fire('model.admin.forums.get_permissions_start', $forum_id);
136136

137-
$select_permissions = array('g.g_id', 'g.g_title', 'g.g_post_replies', 'g.g_post_topics', 'fp.read_forum', 'fp.post_replies', 'fp.post_topics');
138-
// $select_permissions = array('g.g_id', 'g.g_title', 'fp.read_forum', 'fp.post_replies', 'fp.post_topics');
137+
$select_permissions = array('g.g_id', 'g.g_title', 'fp.read_forum', 'fp.post_replies', 'fp.post_topics');
139138

140139
$permissions = DB::for_table('groups')
141140
->table_alias('g')

featherbb/Model/Admin/Groups.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ public function add_edit_group($groups)
169169
'g_promote_min_posts' => $promote_min_posts,
170170
'g_promote_next_group' => $promote_next_group,
171171
'g_moderator' => $moderator,
172-
'g_post_replies' => $post_replies,
173-
'g_post_topics' => $post_topics,
174172
);
175173
$group_preferences = array(
176174
'post.min_interval' => (int) $post_flood,

featherbb/Model/Install.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ class Install
8080
`g_promote_min_posts` int(10) unsigned NOT NULL DEFAULT '0',
8181
`g_promote_next_group` int(10) unsigned NOT NULL DEFAULT '0',
8282
`g_moderator` tinyint(1) NOT NULL DEFAULT '0',
83-
`g_post_replies` tinyint(1) NOT NULL DEFAULT '1',
84-
`g_post_topics` tinyint(1) NOT NULL DEFAULT '1',
8583
`inherit` text,
8684
PRIMARY KEY (`g_id`)
8785
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;",
@@ -282,32 +280,24 @@ public static function load_default_groups()
282280
'g_title' => __('Administrators'),
283281
'g_user_title' => __('Administrator'),
284282
'g_moderator' => 1,
285-
'g_post_replies' => 1,
286-
'g_post_topics' => 1
287283
);
288284
$groups['Moderators'] = array(
289285
'g_id' => 2,
290286
'g_title' => __('Moderators'),
291287
'g_user_title' => __('Moderator'),
292288
'g_moderator' => 1,
293-
'g_post_replies' => 1,
294-
'g_post_topics' => 1
295289
);
296290
$groups['Guests'] = array(
297291
'g_id' => 3,
298292
'g_title' => __('Guests'),
299293
'g_user_title' => __('Guest'),
300294
'g_moderator' => 0,
301-
'g_post_replies' => 0,
302-
'g_post_topics' => 0
303295
);
304296
$groups['Members'] = array(
305297
'g_id' => 4,
306298
'g_title' => __('Members'),
307299
'g_user_title' => __('Member'),
308300
'g_moderator' => 0,
309-
'g_post_replies' => 1,
310-
'g_post_topics' => 1
311301
);
312302

313303
return $groups;

0 commit comments

Comments
 (0)