Change occurances of user->profileField to user->get

This commit is contained in:
Colin Kuskie 2010-11-18 16:12:03 -08:00
parent ae48e7517a
commit 59c03b50e7
41 changed files with 86 additions and 86 deletions

View file

@ -99,7 +99,7 @@ sub getAdminPluginTemplateVars {
elsif ( defined $funcDef->{groupSetting} ) {
$canUse = $user->isInGroup( $setting->get( $funcDef->{groupSetting} ) );
}
if ( $funcDef->{uiLevel} > $user->profileField("uiLevel") ) {
if ( $funcDef->{uiLevel} > $user->get("uiLevel") ) {
$canUse = 0;
}
next unless $canUse;
@ -227,7 +227,7 @@ sub getNewContentTemplateVars {
# Build the categories
my %rawCategories = %{ $config->get('assetCategories') };
my %categories; # All the categories we have
my $userUiLevel = $user->profileField('uiLevel');
my $userUiLevel = $user->get('uiLevel');
foreach my $category ( keys %rawCategories ) {
# Check the ui level
next if $rawCategories{$category}{uiLevel} > $userUiLevel;