Permalink
Browse files

Bugfix: Fieldset->isExpert() throw error if user is not expert and fi…

…eld had to fieldset after build
  • Loading branch information...
felixgilles committed Sep 26, 2013
1 parent adb1157 commit ab626d9210492e3dfb4fab8a787f1e38fabea1c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/classes/fuel/fieldset.php
@@ -598,7 +598,7 @@ public static function defaultComplete($data, $item, $fields, $options)
protected function isExpert($field_name)
{
return !\Session::user()->user_expert && \Arr::get($this->config_used[$field_name], 'expert', false);
return !\Session::user()->user_expert && \Arr::get($this->config_used, $field_name.'.expert', false);
}
public function isRestricted($field_name)

2 comments on commit ab626d9

@nahuel-mahe

This comment has been minimized.

nahuel-mahe replied Nov 1, 2013

Hi, this fix worked perfectly, although it was on the line 619 of the fieldset.php file.
Cheers

@felixgilles

This comment has been minimized.

Contributor

felixgilles replied Nov 2, 2013

Hi @nahuel-mahe,

The difference maybe comes because you've not the last version of the file but an older than this commit e55fb24. No importance, this commit removes only unused lines. Happy that the fix works.

Please sign in to comment.