Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/12/2005 11:30:40 PM (20 years ago)
Author:
mdawaffe
Message:

And one diff to rule them and in its largeness bind them. First caps interation: Fixes #124. UNSTABLE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/bb-admin/sticky.php

    r210 r217  
    11<?php
    22require('admin-header.php');
     3
     4if ( !current_user_can('edit_topics') ) {
     5    header('Location: ' . bb_get_option('uri') );
     6    exit();
     7}
    38
    49$topic_id = (int) $_GET['id'];
     
    712if ( !$topic )
    813    die('There is a problem with that topic, pardner.');
     14
     15if ( $topic->poster != $current_user->ID && !current_user_can('edit_others_topics') ) {
     16    header('Location: ' . bb_get_option('uri') );
     17    exit();
     18}
    919
    1020if ( topic_is_sticky( $topic_id ) )
Note: See TracChangeset for help on using the changeset viewer.