- return user.role === UserRole.USER
- }
-
- save () {
- saveUserInfoIntoLocalStorage({
- id: this.id,
- username: this.username,
- email: this.email,
- role: this.role,
- nsfwPolicy: this.nsfwPolicy,
- webTorrentEnabled: this.webTorrentEnabled,
- autoPlayVideo: this.autoPlayVideo
- })
-
- this.tokens.save()