#1034: Checking Credentials
---------------------------------+------------------------------------------
 Reporter:  jan_schum...@…       |        Owner:  david  
     Type:  enhancement          |       Status:  closed 
 Priority:  normal               |    Milestone:  0.11.7 
Component:  user                 |      Version:  0.11.6 
 Severity:  normal               |   Resolution:  wontfix
 Keywords:                       |    Has_patch:  0      
---------------------------------+------------------------------------------
Changes (by david):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 You can do
 {{{
 $user->hasCredentials(array(array('media_document_edit',
 'media_video_edit', 'media_document_show', 'media_video_show')));
 }}}
 That requires at least one of those.

 If you do
 {{{
 $user->hasCredentials(array(array('media_document_edit',
 'media_video_edit'), array('media_document_show', 'media_video_show')));
 }}}
 then the user needs either "media_document_edit" or "media_video_edit",
 and either "media_document_show" or "media_video_show".

 Is that enough? The problem with wildcards is
  * it breaks backwards compability
  * a credential can be anything, not just a string (and I believe some
 people use it that way)

-- 
Ticket URL: <http://trac.agavi.org/ticket/1034#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to