[Omaha.pm] Changed Permissions->has_permission

Jay Hannah jhannah at omnihotels.com
Fri Aug 26 15:30:39 PDT 2005


> Dunno if this is good or bad... but it works. Ok?

Before

  $o_user_attrib->get_subsystem eq $subsystem or 
  $o_user_attrib->get_subsystem eq 'ALL' or 
  $o_user_attrib->get_subsystem eq 'OMARES' or 
  $o_user_attrib->get_subsystem eq 'DALCOR'

After?

  $o_user_attrib->get_subsystem =~ /^($subsytem|ALL|OMARES|DALCOR)$/

$0.02, 

j





More information about the Omaha-pm mailing list