Skip to content

Commit

Permalink
only show activity form comment box to group managers
Browse files Browse the repository at this point in the history
  • Loading branch information
nkissebe committed Nov 4, 2022
1 parent c781753 commit 5cdfadf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/plugins/groups/activity/views/activity/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
</fieldset>
</form>

<?php if (in_array(User::get('id'), $this->group->get('managers'))) { ?>
<?php if ($this->group->published == 1) { ?>
<form action="<?php echo Route::url($base . '&active=activity'); ?>" method="post" id="commentform" enctype="multipart/form-data">
<p class="comment-member-photo">
Expand Down Expand Up @@ -107,6 +108,7 @@
</fieldset>
</form>
<?php } ?>
<?php } ?>
<?php } ?>

<?php if ($this->rows->count()) { ?>
Expand Down

0 comments on commit 5cdfadf

Please sign in to comment.