LCRole
public class LCRole : LCObject
LeanCloud role type.
A type to group user for access control. Conceptually, it is equivalent to UNIX user group.
-
Name of role.
The name must be unique throughout the application. It will be used as key in ACL to refer the role.
Declaration
Swift
@objc dynamic public var name: LCString? -
Relation of users.
Declaration
Swift
@objc dynamic public var users: LCRelation? -
Relation of roles.
Declaration
Swift
@objc dynamic public var roles: LCRelation? -
Declaration
Swift
public final override class func objectClassName() -> String -
Create an role with name.
Declaration
Swift
public convenience init( application: LCApplication = LCApplication.default, name: String)Parameters
nameThe name of role.
View on GitHub
Install in Dash
LCRole Class Reference