Changeset 249

Show
Ignore:
Timestamp:
07/19/06 16:28:34 (2 years ago)
Author:
lekeno
Message:

fix for the bug where user with admin rights could not edit a meme
fix to use the url rewriting scheme

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/public_html/edit_meme.php

    r233 r249  
    1515  $memes = new memes($bm_db, $bm_user); 
    1616  $meme = $memes->get_original_meme($meme_id); 
    17   if ($meme->submitted_user_id != $bm_user && $bm_user != 1) { 
    18           header("Location: comment.php?meme_id=$meme_id"); 
     17  if ($meme->submitted_user_id != $bm_user && !$bm_users->get_is_admin()) { 
     18          header("Location: /meme/$meme_id"); 
    1919          exit(); 
    2020          return;