Show
Ignore:
Timestamp:
09/05/08 13:32:48 (4 months ago)
Author:
bjohnson
Message:

schema06: Added some ACL support to the Post class. Also added the backend for 'minor edits'.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/schema06/system/classes/user.php

    r2404 r2448  
    397397     * 
    398398     * @param string $permission The name of the permission to detect 
     399     * @param string $access The type of access to check for (read, write, full, etc.) 
    399400     * @return boolean True if this user has the requested permission, false if not 
    400401     */ 
    401     public function can( $permission ) 
    402     { 
    403         return ACL::user_can( $this, $permission ); 
     402    public function can( $permission, $access = 'full' ) 
     403    { 
     404        return ACL::user_can( $this, $permission, $access ); 
    404405    } 
    405406