Changeset 516
- Timestamp:
- 10/21/09 18:34:38 (15 years ago)
- Location:
- LATMOS-Accounts-Web
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller.pm
r513 r516 35 35 : ()), 36 36 [ 'sites' => 'Sites' ], 37 [ 'aliases' => 'Alias Mail' ], 37 38 ); 38 39 foreach(@menus) { -
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/Accounts.pm
r367 r516 44 44 } 45 45 46 # Such function must not be here, but in LATMOS::Accounts 47 # But code does not allow this at time 48 sub list_unowned_aliases { 49 my ($self, $filter) = @_; 50 my $db = $self->db; 51 my $sth = $db->db->prepare_cached(q{ 52 select name, forward from aliases where 53 name not in (select name from "user") 54 and 55 forward not in (select array[name] from "user") 56 } . 57 ($filter 58 ? q{ 59 and (lower(name) ILIKE $1 or 60 lower(array_to_string(forward, ',')) ILIKE $1) 61 } 62 : '') 63 ); 64 65 $sth->execute($filter ? ('%' . $filter . '%') : ()); 66 my %aliases; 67 while (my $res = $sth->fetchrow_hashref) { 68 $aliases{$res->{name}} = $res->{forward}; 69 } 70 return \%aliases 71 } 72 46 73 sub sync_access { 47 74 my ($self) = @_;
Note: See TracChangeset
for help on using the changeset viewer.