blob: 2ae03aeac063098c33f5164f98e24e286df8c92a [file] [log] [blame]
package org.wordpress.android.models;
/**
* Used to decide what can the current user do in a particular blog
* A list of capabilities can be found in: https://codex.wordpress.org/Roles_and_Capabilities#Capabilities
*/
public enum Capability {
LIST_USERS("list_users"), // Check if user can visit People page
PROMOTE_USERS("promote_users"), // Check if user can change another user's role
REMOVE_USERS("remove_users"); // Check if user can remove another user
private final String label;
Capability(String label) {
this.label = label;
}
public String getLabel() {
return label;
}
}