Changeset 2448 for branches/schema06/system/classes/user.php
- Timestamp:
- 09/05/08 13:32:48 (4 months ago)
- Files:
-
- 1 modified
-
branches/schema06/system/classes/user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/schema06/system/classes/user.php
r2404 r2448 397 397 * 398 398 * @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.) 399 400 * @return boolean True if this user has the requested permission, false if not 400 401 */ 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 ); 404 405 } 405 406
