mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
edit button
This commit is contained in:
@@ -1 +1,15 @@
|
||||
package dbmodels
|
||||
|
||||
func IsAdminOrEditor(user *FixedUser) bool {
|
||||
if user == nil {
|
||||
return false
|
||||
}
|
||||
return user.Role == "Admin" || user.Role == "Editor"
|
||||
}
|
||||
|
||||
func IsAdmin(user *FixedUser) bool {
|
||||
if user == nil {
|
||||
return false
|
||||
}
|
||||
return user.Role == "Admin"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user