[wp-trac] [WordPress Trac] #10763: Abstract function for authorization check in admin pages

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 9 22:54:29 UTC 2009


#10763: Abstract function for authorization check in admin pages
------------------------------+---------------------------------------------
 Reporter:  johnjosephbachir  |       Owner:  ryan                    
     Type:  enhancement       |      Status:  new                     
 Priority:  normal            |   Milestone:  Future Release          
Component:  Security          |     Version:  2.8.4                   
 Severity:  normal            |    Keywords:  needs-patch dev-feedback
------------------------------+---------------------------------------------

Comment(by azaozz):

 DD32 is right, looks like we can either have a customized message or
 introduce a small function to check permissions and output a standard
 ('You do not have sufficient permissions to access this page') error
 message.

 Don't think we need the complexity of a `check_authorization()` function
 that tries to construct custom messages, won't be useful for plugins too.
 And it becomes redundant if we have to pass the full message to it, better
 to leave it as is.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10763#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list