module CrystalGauntlet::Ranks

Extended Modules

Defined in:

lib/ranks.cr

Constant Summary

NULL_RANK = Rank.new(name: "null", position: -1)

Instance Method Summary

Instance Method Detail

def get_permissions(rank : Rank) : Hash(String, Bool) #

[View source]
def get_permissions(account_id : Int32) #

[View source]
def get_rank(rank_name : String) : Rank | Nil #

[View source]
def get_rank(account_id : Int32) : Rank #

[View source]
def has_permission(rank : Rank, perm : String) #

[View source]
def has_permission(account_id : Int32, perm : String) #

[View source]
def init #

[View source]