mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 13:22:57 +00:00
add new methods
This commit is contained in:
1 parent
4a4e8ef91a
commit
d11087e483
1 file changed
+8
@@ -65,6 +65,14 @@ export class SessionWrapper {
|
||||
return this.canEditOtherUsersProfiles();
|
||||
}
|
||||
|
||||
public canEditMediaFileByUserToken(userToken: MaybeString) : boolean {
|
||||
return this.canEditOtherUsersTtsModels() || this.userTokenMatches(userToken);
|
||||
}
|
||||
|
||||
public canEditWeightByUserToken(userToken: MaybeString) : boolean {
|
||||
return this.canEditOtherUsersTtsModels() || this.userTokenMatches(userToken);
|
||||
}
|
||||
|
||||
public canEditTtsModelByUserToken(userToken: MaybeString) : boolean {
|
||||
return this.canEditOtherUsersTtsModels() || this.userTokenMatches(userToken);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user