Thank you, how can i set "Can view post revisions" permission for all the users? Not just for moderators.primehalo wrote: Sat Apr 10, 2021 5:40 am To clarify, the "Can view own post’s revisions" permission can be found in the Forum permissions section on the Actions tab. The "Can view post revisions" permission can be found in the Forum moderators section on the Actions tab.
Thank you, may i ask you to say what code to edit to add "Can view post revisions" to users permission?primehalo wrote: Sun Apr 11, 2021 4:13 pm It's not really set up to do that. You could possibly create a new moderator role that only allows that permission and then assign everyone to that role.
If you just want everyone to have that access then edit ext/primehalo/primepostrevisions/core/prime_post_revisions.php, find this line:lol wrote: Sun Apr 11, 2021 6:00 pmThank you, may i ask you to say what code to edit to add "Can view post revisions" to users permission?primehalo wrote: Sun Apr 11, 2021 4:13 pm It's not really set up to do that. You could possibly create a new moderator role that only allows that permission and then assign everyone to that role.
Code: Select all
return $this->auth->acl_get('m_primepostrev_view', $forum_id)
Code: Select all
return true || $this->auth->acl_get('m_primepostrev_view', $forum_id)
thank you. this is what i need.primehalo wrote: Sun Apr 11, 2021 10:11 pmIf you just want everyone to have that access then edit ext/primehalo/primepostrevisions/core/prime_post_revisions.php, find this line:lol wrote: Sun Apr 11, 2021 6:00 pmThank you, may i ask you to say what code to edit to add "Can view post revisions" to users permission?primehalo wrote: Sun Apr 11, 2021 4:13 pm It's not really set up to do that. You could possibly create a new moderator role that only allows that permission and then assign everyone to that role.and change to this:Code: Select all
return $this->auth->acl_get('m_primepostrev_view', $forum_id)
Code: Select all
return true || $this->auth->acl_get('m_primepostrev_view', $forum_id)
Code: Select all
return $this->auth->data['user_id'] != ANONYMOUS && !$this->auth->data['is_bot'];
unfortunately did not work.primehalo wrote: Mon Apr 12, 2021 5:22 am I'm not sure but you could try something like this and see if it works:If that doesn't work then I'm really not sure.Code: Select all
return $this->auth->data['user_id'] != ANONYMOUS && !$this->auth->data['is_bot'];
i meant you not meprimehalo wrote: Mon Apr 12, 2021 6:08 am You're welcome to try editing that code but it's not a project I want to tackle.