Skip to content

Commit e8581bb

Browse files
committed
Remove Subscriber from the list of allowed roles
1 parent 0180001 commit e8581bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

includes/Classifai/Features/Feature.php

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public function setup_roles() {
7575
$this->roles = get_editable_roles() ?? [];
7676
$this->roles = array_combine( array_keys( $this->roles ), array_column( $this->roles, 'name' ) );
7777

78+
// Remove subscriber from the list of roles.
79+
unset( $this->roles['subscriber'] );
80+
7881
/**
7982
* Filter the allowed WordPress roles for a feature.
8083
*

0 commit comments

Comments
 (0)