Changeset 217 for trunk/bb-admin/sticky.php
- Timestamp:
- 08/12/2005 11:30:40 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/bb-admin/sticky.php ¶
r210 r217 1 1 <?php 2 2 require('admin-header.php'); 3 4 if ( !current_user_can('edit_topics') ) { 5 header('Location: ' . bb_get_option('uri') ); 6 exit(); 7 } 3 8 4 9 $topic_id = (int) $_GET['id']; … … 7 12 if ( !$topic ) 8 13 die('There is a problem with that topic, pardner.'); 14 15 if ( $topic->poster != $current_user->ID && !current_user_can('edit_others_topics') ) { 16 header('Location: ' . bb_get_option('uri') ); 17 exit(); 18 } 9 19 10 20 if ( topic_is_sticky( $topic_id ) )
Note: See TracChangeset
for help on using the changeset viewer.