Inline editing

This commit is contained in:
2017-06-30 23:52:42 +02:00
parent df01fb891b
commit 633b5942f5
8 changed files with 78 additions and 26 deletions

View File

@ -9,3 +9,20 @@ import (
func GetUser(ctx *aero.Context) *arn.User {
return arn.GetUserFromContext(ctx)
}
// SameUser returns "true" or "false" depending on if the users are the same.
func SameUser(a *arn.User, b *arn.User) string {
if a == nil {
return "false"
}
if b == nil {
return "false"
}
if a.ID == b.ID {
return "true"
}
return "false"
}