2022-09-28 09:01:17 +02:00
|
|
|
package acl
|
|
|
|
|
|
|
|
// Resources specifies granted permissions by Resource and Role.
|
|
|
|
var Resources = ACL{
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceFiles: Roles{
|
2022-09-28 09:01:17 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourcePhotos: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
RoleVisitor: Grant{AccessShared: true, ActionView: true, ActionDownload: true},
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceVideos: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
RoleVisitor: Grant{AccessShared: true, ActionView: true, ActionDownload: true},
|
|
|
|
},
|
|
|
|
ResourceAlbums: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
2022-10-02 11:38:30 +02:00
|
|
|
RoleVisitor: GrantSearchShared,
|
2022-09-30 19:15:10 +02:00
|
|
|
},
|
|
|
|
ResourceFolders: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
2022-10-02 11:38:30 +02:00
|
|
|
RoleVisitor: GrantSearchShared,
|
2022-09-30 19:15:10 +02:00
|
|
|
},
|
|
|
|
ResourcePlaces: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
RoleVisitor: Grant{AccessShared: true, ActionView: true, ActionDownload: true},
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
|
|
|
ResourceCalendar: Roles{
|
2022-09-30 19:15:10 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
2022-10-02 11:38:30 +02:00
|
|
|
RoleVisitor: GrantSearchShared,
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
|
|
|
ResourceMoments: Roles{
|
2022-09-30 19:15:10 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
2022-10-02 11:38:30 +02:00
|
|
|
RoleVisitor: GrantSearchShared,
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
|
|
|
ResourcePeople: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
},
|
|
|
|
ResourceFavorites: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceLabels: Roles{
|
2022-09-28 09:01:17 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceLogs: Roles{
|
2022-09-28 09:01:17 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceSettings: Roles{
|
2022-10-02 11:38:30 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
RoleVisitor: Grant{AccessOwn: true, ActionView: true},
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceFeedback: Roles{
|
2022-09-28 09:01:17 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourcePassword: Roles{
|
2022-09-28 09:01:17 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceShares: Roles{
|
2022-09-28 09:01:17 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
|
|
|
},
|
2022-10-15 21:54:11 +02:00
|
|
|
ResourceServices: Roles{
|
2022-09-30 19:15:10 +02:00
|
|
|
RoleAdmin: GrantFullAccess,
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceUsers: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceConfig: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
2022-09-30 19:15:10 +02:00
|
|
|
ResourceDefault: Roles{
|
|
|
|
RoleAdmin: GrantFullAccess,
|
2022-09-28 09:01:17 +02:00
|
|
|
},
|
|
|
|
}
|