submissions: implement ScriptWrite permission
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
25dbc038ca
commit
c085ea9b7d
@ -15,6 +15,8 @@ var (
|
||||
)
|
||||
|
||||
var (
|
||||
// has ScriptWrite
|
||||
RoleQuat int32 = 255
|
||||
// has SubmissionPublish
|
||||
RoleMapAdmin int32 = 128
|
||||
// has SubmissionReview
|
||||
@ -80,6 +82,9 @@ func (svc SecurityHandler) HandleCookieAuth(ctx context.Context, operationName a
|
||||
|
||||
// fix this when roblox udpates group roles
|
||||
for _, r := range role.Roles {
|
||||
if RoleQuat <= r.Rank {
|
||||
roles.ScriptWrite = true
|
||||
}
|
||||
if RoleMapAdmin <= r.Rank {
|
||||
roles.SubmissionRelease = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user