Changeset 474 for devel/_weblog

Show
Ignore:
Timestamp:
08/03/06 08:35:42 (2 years ago)
Author:
ben
Message:

Weblog post page now reverts to a 'you are not logged in message' and the default template if you aren't logged in. Also, if you don't have permission to post at the current blog and have got here somewhere, the page now reverts ownership to the currently logged in user's blog.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/_weblog/edit.php

    r296 r474  
    99        run("profile:init"); 
    1010        run("friends:init"); 
     11         
     12        global $page_owner; 
     13        if (!logged_on) { 
     14            $page_owner = -1; 
     15        } else { 
     16            if (!run("permissions:check", "weblog")) { 
     17                $page_owner = $_SESSION['userid']; 
     18            } 
     19        } 
    1120         
    1221        define("context", "weblog");