feat: List domains user can see on homepage
This commit is contained in:
parent
58a8c375f0
commit
8a7e644960
11 changed files with 136 additions and 58 deletions
|
|
@ -80,6 +80,10 @@ impl User {
|
|||
pub fn can_perform(&self, operation: &Operation) -> bool {
|
||||
self.role.can_perform(operation)
|
||||
}
|
||||
|
||||
pub fn can_create_domain(&self) -> bool {
|
||||
self.role.can_perform(&Operation::CreateDomain)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for User {
|
||||
|
|
|
|||
Loading…
Reference in a new issue