Skip to content

Commit c6d63a2

Browse files
committed
fixed role based auth
1 parent fd492fb commit c6d63a2

File tree

6 files changed

+20
-36
lines changed

6 files changed

+20
-36
lines changed

dist/user/user.controller.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import { CreateForgotPasswordDto } from "./dto/create-forgot-password.dto";
1111
import { PushNotificationDto } from "./dto/push-notification.dto";
1212
import { CreateResellerDto } from "./dto/create-reseller.dto";
1313
import { UpdateProfileDto } from "./dto/updateProfile.dto";
14+
import { RoleType } from "../shared/role-type.enum";
1415
export declare class UserController {
1516
private readonly userService;
1617
constructor(userService: UserService);
1718
register(createUserDto: CreateUserDto, user: User): Promise<any>;
1819
registerReseller(createResellerDto: CreateResellerDto, user: User): Promise<any>;
1920
getAllUsersHack(user: User): Promise<any>;
20-
getUsersForOrga(organizationId: string): Promise<Pick<User, "password" | "_id" | "roles" | "email" | "fullName" | "roleType" | "reportsTo" | "phoneNumber" | "verification" | "verified" | "verificationExpires" | "loginAttempts" | "blockExpires" | "bankAccountNumber" | "bankAccountName" | "batLvl" | "singleLoginKey" | "history" | "hierarchyWeight" | "organization" | "pushtoken">[]>;
2121
getUserProfile(user: User): Promise<Pick<User, "password" | "_id" | "roles" | "email" | "fullName" | "roleType" | "reportsTo" | "phoneNumber" | "verification" | "verified" | "verificationExpires" | "loginAttempts" | "blockExpires" | "bankAccountNumber" | "bankAccountName" | "batLvl" | "singleLoginKey" | "history" | "hierarchyWeight" | "organization" | "pushtoken">>;
2222
updateUserProfile(user: User, updateProfileDto: UpdateProfileDto): Promise<{
2323
status: string;
@@ -33,7 +33,7 @@ export declare class UserController {
3333
fullName: string;
3434
organization: any;
3535
email: string;
36-
roleType: import("../shared/role-type.enum").RoleType;
36+
roleType: RoleType;
3737
accessToken: string;
3838
refreshToken: string;
3939
}>;

dist/user/user.controller.js

Lines changed: 2 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)