Skip to content

Commit 4f6ea18

Browse files
committed
refactor: [#615] new action and reordered old ones for cohesion
1 parent 0ac5f9b commit 4f6ea18

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/services/authorization.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@ impl fmt::Display for UserRole {
3131

3232
#[derive(Debug, Clone, Serialize, Deserialize, Hash)]
3333
pub enum ACTION {
34+
GetCategories,
3435
AddCategory,
3536
DeleteCategory,
3637
GetSettings,
3738
GetSettingsSecret,
39+
GetTags,
3840
AddTag,
3941
DeleteTag,
4042
DeleteTorrent,
4143
BanUser,
4244
GetAboutPage,
4345
GetLicensePage,
44-
GetCategories,
45-
GetTags,
46+
GetImageByUrl,
4647
}
4748

4849
pub struct Service {
@@ -179,10 +180,11 @@ impl CasbinConfiguration {
179180
admin, DeleteTag
180181
admin, DeleteTorrent
181182
admin, BanUser
182-
guest, GetAboutPage
183-
guest, GetLicensePage
183+
registered, GetImageByUrl
184184
guest, GetCategories
185185
guest, GetTags
186+
guest, GetAboutPage
187+
guest, GetLicensePage
186188
",
187189
),
188190
}

0 commit comments

Comments
 (0)