Add endpoint to get sales_person for current user
This commit is contained in:
parent
42ebce15e8
commit
bd887cfd7b
12 changed files with 108 additions and 5 deletions
|
|
@ -65,6 +65,10 @@ impl<Context: Clone + Debug + PartialEq + Eq + Send + Sync + 'static> From<Conte
|
|||
pub trait PermissionService {
|
||||
type Context: Clone + PartialEq + Eq + Debug + Send + Sync + 'static;
|
||||
|
||||
async fn current_user_id(
|
||||
&self,
|
||||
context: Authentication<Self::Context>,
|
||||
) -> Result<Option<Arc<str>>, ServiceError>;
|
||||
async fn check_permission(
|
||||
&self,
|
||||
privilege: &str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue