edit button

This commit is contained in:
Simon Martens
2025-05-27 15:22:50 +02:00
parent 4e13a0b5cb
commit fb8ac1b723
4 changed files with 29 additions and 5 deletions

View File

@@ -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"
}