Changeset 489
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r488 r489 38 38 @EXPORT_OK = qw( 39 39 &initGlobals &login &initActionLog 40 & initPermissions &getPermissions &changePermissions &comparePermissions40 &getPermissions &changePermissions &comparePermissions 41 41 &changeGroup 42 42 &loadConfig &connectDB &finish … … 60 60 &mailNotify 61 61 %typemap %reverse_typemap %config 62 %permissions@permtypes $permlist %permchains62 @permtypes $permlist %permchains 63 63 ); 64 64 65 @EXPORT = qw(%typemap %reverse_typemap %permissions@permtypes $permlist %permchains);65 @EXPORT = qw(%typemap %reverse_typemap @permtypes $permlist %permchains); 66 66 %EXPORT_TAGS = ( ALL => [qw( 67 67 &initGlobals &login &initActionLog 68 & initPermissions &getPermissions &changePermissions &comparePermissions68 &getPermissions &changePermissions &comparePermissions 69 69 &changeGroup 70 70 &loadConfig &connectDB &finish … … 88 88 &mailNotify 89 89 %typemap %reverse_typemap %config 90 %permissions@permtypes $permlist %permchains90 @permtypes $permlist %permchains 91 91 )] 92 92 ); … … 135 135 our %typemap; 136 136 our %reverse_typemap; 137 138 our %permissions;139 137 140 138 # Prepopulate a basic config. Note some of these *will* cause errors if left unset. … … 1557 1555 1558 1556 } # end initActionLog 1559 1560 1561 ## DNSDB::initPermissions()1562 # Set up permissions global1563 # Takes database handle and UID1564 sub initPermissions {1565 my $self = shift;1566 my $dbh = $self->{dbh};1567 my $uid = shift;1568 1569 # %permissions = $(getPermissions('user',$uid));1570 $self->getPermissions('user', $uid, \%permissions);1571 1572 } # end initPermissions()1573 1557 1574 1558 -
trunk/dns.cgi
r486 r489 291 291 292 292 # Misc Things To Do on most pages 293 $dnsdb->initPermissions($session->param('uid')); 293 my %permissions; 294 $dnsdb->getPermissions('user', $session->param('uid'), \%permissions); 294 295 $dnsdb->initActionLog($session->param('uid')); 295 296
Note:
See TracChangeset
for help on using the changeset viewer.