blob: 2ae03aeac063098c33f5164f98e24e286df8c92a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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;
}
}
|