Skip to content

Commit da4ee5d

Browse files
committed
refactor: [#799] more descriptive function comment and code cleanup
1 parent 67cafad commit da4ee5d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/databases/database.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub trait Database: Sync + Send {
143143
/// Get `UserProfile` from `username`.
144144
async fn get_user_profile_from_username(&self, username: &str) -> Result<UserProfile, Error>;
145145

146-
/// Get all user profiles in a paginated form as `UserProfilesResponse`.
146+
/// Get all user profiles in a paginated and sorted form as `UserProfilesResponse` from `search`,`offset` and `page_size`.
147147
async fn get_user_profiles_search_paginated(
148148
&self,
149149
search: &Option<String>,

src/services/authorization.rs

-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ impl Default for CasbinConfiguration {
273273
guest, GetTorrentInfo
274274
guest, GenerateTorrentInfoListing
275275
guest, GetCanonicalInfoHash
276-
guest, GenerateUserProfilesListing
277276
",
278277
),
279278
}

0 commit comments

Comments
 (0)