[TikiWiki-commits] [Git][tikiwiki/tiki][28.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 | <690134be9274f_2c186c30016@gitlab-sidekiq-low-urgency-cpu-bound-v2-7767f69594-vqqpn.mail> |
Joseph Lwanzo Kausi pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki
Commits:
1d6fe589 by Joseph Lwanzo Kausi at 2025-10-28T23:18:40+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!7701
- - - - -
2 changed files:
- lib/comments/commentslib.php
- templates/tiki-view_forum.tpl
Changes:
=====================================
lib/comments/commentslib.php
=====================================
@@ -3946,7 +3946,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
=====================================
@@ -202,7 +202,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/1d6fe589118adc19006a9307820839a23664db3a
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1d6fe589118adc19006a9307820839a23664db3a
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