Changeset 3745
- Timestamp:
- 10/01/09 11:50:15 (2 years ago)
- File:
-
- 1 edited
-
trunk/htdocs/system/classes/adminhandler.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/adminhandler.php
r3744 r3745 606 606 $okay = FALSE; 607 607 } 608 609 $post = Post::get( array( 'id' => $id, 'status' => Post::status( 'any' ) ) ); 610 if ( ! ACL::access_check( $post->get_access(), 'delete' ) ) { 611 $okay = FALSE; 612 } 613 608 614 if ( !$okay ) { 609 615 Utils::redirect( URL::get( 'admin', 'page=posts&type='. Post::status( 'any' ) ) ); 610 616 } 611 $post = Post::get( array( 'id' => $id, 'status' => Post::status( 'any' ) ) ); 617 612 618 $post->delete(); 613 619 Session::notice( sprintf( _t( 'Deleted the %1$s titled "%2$s".' ), Post::type_name( $post->content_type ), htmlspecialchars( $post->title ) ) );
Note: See TracChangeset
for help on using the changeset viewer.
