[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [MOD] Comments: Update forum permissions to allow users with post topic...

"Joseph Lwanzo Kausi \(@Grandi0z\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69013628a4461_2ce1c8024340@gitlab-sidekiq-low-urgency-cpu-bound-v2-7767f69594-v99sf.mail>

Joseph Lwanzo Kausi pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
c0706d7c by Joseph Lwanzo Kausi at 2025-10-28T23:24:52+02:00
[MOD] Comments: Update forum permissions to allow users with post topic...
---
* [MOD] Comments: Update forum permissions to allow users with post topic...
---
* [MOD] Comments: Update forum permissions to allow users with post topic permission to set topic type in comments

See merge request tikiwiki/tiki!7692

See merge request tikiwiki/tiki!7702

- - - - -


2 changed files:

- lib/comments/commentslib.php
- templates/tiki-view_forum.tpl


Changes:

=====================================
lib/comments/commentslib.php
=====================================
@@ -3972,7 +3972,7 @@ class Comments extends TikiLib
             $params['comment_topictype'] = 'n';
         }
 
-        if ($tiki_p_admin_forum != 'y') {// non admin can only post normal
+        if ($tiki_p_forum_post_topic != 'y') {// all users with post topic permission can set topic type
             $params['comment_topictype'] = 'n';
             if ($forum_info['topic_summary'] != 'y') {
                 $params['comment_topicsummary'] = '';


=====================================
templates/tiki-view_forum.tpl
=====================================
@@ -200,7 +200,7 @@
                             </div>
                         </div>
                     {/if}
-                    {if $tiki_p_admin_forum eq 'y'}
+                    {if $tiki_p_forum_post_topic eq 'y'}
                         <div class="mb-3 row">
                             <label class="col-sm-2 col-form-label" for="comment_topictype">{tr}Type{/tr}</label>
                             <div class="col-sm-10">



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c0706d7c8c22764328857ea8172fefcb75a97b2f

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c0706d7c8c22764328857ea8172fefcb75a97b2f
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.