File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class AdminForm extends \themroc\humhub\modules\modhelper\models\AdminForm
1717 public $ sort ;
1818 public $ size ;
1919 public $ url ;
20+ public $ url_reg ;
2021
2122 protected $ vars = [
2223 'label ' => [
@@ -40,6 +41,10 @@ class AdminForm extends \themroc\humhub\modules\modhelper\models\AdminForm
4041 'label ' => 'Page URL ' ,
4142 'hints ' => 'The webpage to be shown ' ,
4243 ],
44+ 'url_reg ' => [
45+ 'label ' => 'Page URL for registered users ' ,
46+ 'hints ' => 'If empty, the above will be used ' ,
47+ ],
4348 ];
4449
4550 protected $ mod = [
Original file line number Diff line number Diff line change 66
77$ frame = Yii::$ app ->request ->get ('frame ' );
88$ mod = Yii::$ app ->getModule ('iframe ' );
9- $ url = $ mod ->getSetting ('url ' , $ frame );
9+ $ url = $ mod ->getSetting ('url_reg ' , $ frame );
10+ if (empty ($ url ) || Yii::$ app ->user ->isGuest )
11+ $ url = $ mod ->getSetting ('url ' , $ frame );
1012
1113$ js = [];
1214foreach ($ mod ->getFrames () as $ f )
You can’t perform that action at this time.
0 commit comments