Browse Source

Don't show screenshot adder on edit form

spaghetti 7 years ago
parent
commit
488a22857c
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      sections/torrents/editgroup.php

+ 5
- 1
sections/torrents/editgroup.php View File

@@ -162,7 +162,11 @@ View::show_header('Edit torrent group', 'upload');
162 162
               <a onclick="RemoveScreenshotField(this)" class="brackets">&minus;</a>
163 163
 <? } ?>
164 164
               <br />
165
-              <img class="tooltip lightbox-init" title='<?=Users::format_username($Screenshot['UserID'], false, false, false)?> - <?=time_diff($Screenshot['Time'])?>' style="width: 30%;" src="<?=$SSURL?>" />
165
+<?            if (check_perms('users_mod')) { ?>
166
+                <img class="tooltip lightbox-init" title='<?=Users::format_username($Screenshot['UserID'], false, false, false)?> - <?=time_diff($Screenshot['Time'])?>' src="<?=$SSURL?>" />
167
+<?            } else { ?>
168
+                <img class="tooltip lightbox-init" title='Added <?=time_diff($Screenshot['Time'])?>' src="<?=$SSURL?>" />
169
+<?            } ?>
166 170
             </div>
167 171
             <br />
168 172
 <? } ?>

Loading…
Cancel
Save