Wed Oct 28, 2009 6:56 pm by ryanmc
I have been looking into my problems with getting permissions working correctly and I have discovered that thumbs in both articles and comments are not using their own permissions, instead they are using the permissions for stars.
Here is what I found:
in the function render_thumb_comment_actual on line 395 you see this line
- Code:
$rules_comments = $post_data->rules_comments != "I" ? $post_data->rules_comments : $this->g->get_post_rule_value($rd_post_id, "rules_comments", "default_voterules_comments");
rules_comments is the database field for stars, recc_rules_comments is the database field for thumbs
It should look like this
- Code:
$rules_comments = $post_data->recc_rules_comments != "I" ? $post_data->recc_rules_comments : $this->g->get_post_rule_value($rd_post_id, "recc_rules_comments", "default_voterules_comments");
Also in the function render_thumb_article_actual on line 676 you see this line
- Code:
$rules_articles = $post_data->rules_articles != "I" ? $post_data->rules_articles : $this->g->get_post_rule_value($rd_post_id, "rules_articles", "default_voterules_articles");
again rules_articles is the database field for stars, recc_rules_articles is the database field for thumbs
It should look like this
- Code:
$rules_articles = $post_data->recc_rules_articles != "I" ? $post_data->recc_rules_articles : $this->g->get_post_rule_value($rd_post_id, "recc_rules_articles", "default_voterules_articles");
I have tested both of these changes and they seem to work.
Last edited by
ryanmc on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: .
www.justechn.com