-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsecurity.go
More file actions
61 lines (56 loc) · 2.95 KB
/
security.go
File metadata and controls
61 lines (56 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package mail
import (
"github.com/hexya-addons/base"
"github.com/hexya-erp/hexya/src/models/security"
"github.com/hexya-erp/pool/h"
)
//vars
var (
)
//rights
func init() {
h.MailMessage().Methods().Load().AllowGroup(security.GroupEveryone)
h.MailMessage().Methods().AllowAllToGroup(base.GroupPortal)
h.MailMessage().Methods().AllowAllToGroup(base.GroupUser)
h.MailMail().Methods().Load().AllowGroup(security.GroupEveryone)
h.MailMail().Methods().Load().AllowGroup(base.GroupPortal)
h.MailMail().Methods().Write().AllowGroup(base.GroupPortal)
h.MailMail().Methods().Create().AllowGroup(base.GroupPortal)
h.MailMail().Methods().Load().AllowGroup(base.GroupUser)
h.MailMail().Methods().Write().AllowGroup(base.GroupUser)
h.MailMail().Methods().Create().AllowGroup(base.GroupUser)
h.MailMail().Methods().AllowAllToGroup(base.GroupSystem)
h.MailFollowers().Methods().Load().AllowGroup(security.GroupEveryone)
h.MailFollowers().Methods().Load().AllowGroup(base.GroupPortal)
h.MailFollowers().Methods().Write().AllowGroup(base.GroupPortal)
h.MailFollowers().Methods().Create().AllowGroup(base.GroupPortal)
h.MailFollowers().Methods().Load().AllowGroup(base.GroupUser)
h.MailFollowers().Methods().Write().AllowGroup(base.GroupUser)
h.MailFollowers().Methods().Create().AllowGroup(base.GroupUser)
h.MailFollowers().Methods().AllowAllToGroup(base.GroupSystem)
h.MailNotification().Methods().Load().AllowGroup(base.GroupPortal)
h.MailNotification().Methods().Load().AllowGroup(base.GroupUser)
h.MailNotification().Methods().Write().AllowGroup(base.GroupUser)
h.MailNotification().Methods().Create().AllowGroup(base.GroupUser)
h.MailNotification().Methods().AllowAllToGroup(base.GroupSystem)
h.MailChannel().Methods().Load().AllowGroup(security.GroupEveryone)
h.MailChannel().Methods().AllowAllToGroup(base.GroupUser)
h.MailChannelPartner().Methods().Load().AllowGroup(base.GroupPublic)
h.MailChannelPartner().Methods().AllowAllToGroup(base.GroupPortal)
h.MailChannelPartner().Methods().AllowAllToGroup(base.GroupUser)
h.MailAlias().Methods().Load().AllowGroup(security.GroupEveryone)
h.MailAlias().Methods().AllowAllToGroup(base.GroupUser)
h.MailAlias().Methods().AllowAllToGroup(base.GroupSystem)
h.MailMessageSubtype().Methods().Load().AllowGroup(security.GroupEveryone)
h.MailMessageSubtype().Methods().AllowAllToGroup(base.GroupUser)
h.MailTrackingValue().Methods().AllowAllToGroup(base.GroupSystem)
h.MailThread().Methods().AllowAllToGroup(security.GroupEveryone)
h.PublisherWarrantyContract().Methods().AllowAllToGroup(security.GroupEveryone)
h.MailTemplate().Methods().Load().AllowGroup(base.GroupUser)
h.MailTemplate().Methods().Write().AllowGroup(base.GroupUser)
h.MailTemplate().Methods().Create().AllowGroup(base.GroupUser)
h.MailTemplate().Methods().AllowAllToGroup(base.GroupSystem)
h.MailShortcode().Methods().AllowAllToGroup(base.GroupUser)
h.MailShortcode().Methods().Load().AllowGroup(base.GroupPortal)
h.MailTest().Methods().AllowAllToGroup(base.GroupUser)
}