PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmApplicationsController.php +3 -3 6.28 → trunk View file →
@@ -78,16 +78,16 @@
78 78
79 79 $view = FrmAppHelper::get_param( 'view', '', 'get', 'sanitize_text_field' );
80 80 $data = array();
81 81
82 - if ( 'applications' !== $view ) {
82 + if ( 'applications' === $view ) {
83 + FrmAppHelper::permission_check( 'frm_edit_applications' );
84 + } else {
83 85 FrmAppHelper::permission_check( self::get_required_capability() );
84 86
85 87 // View may be 'applications', 'templates', or empty.
86 88 $data['templates'] = self::get_prepared_template_data();
87 89 $data['categories'] = FrmApplicationTemplate::get_categories();
88 - } else {
89 - FrmAppHelper::permission_check( 'frm_edit_applications' );
90 90 }
91 91
92 92 /**
93 93 * @param array $data