Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions classes/models/FrmSalesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ private function get_ab_group_for_current_site() {
* @return bool
*/
public static function maybe_show_banner() {
if ( ! current_user_can( 'frm_change_settings' ) ) {
return false;
}

if ( ! isset( self::$instance ) ) {
self::$instance = new FrmSalesApi();
}
Expand Down
Loading