Merge pull request #4161 from MaximilianKrambach/passwordRestrictions

reset password permission check in menu
This commit is contained in:
Sean 2019-01-22 11:26:59 +01:00 committed by GitHub
commit 20bb92466b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 25 deletions

View File

@ -288,10 +288,13 @@ _('Can support motions');
_('Can manage motions'); _('Can manage motions');
_('Can see comments'); _('Can see comments');
_('Can manage comments'); _('Can manage comments');
_('Can manage motion metadata');
_('Can create amendments');
// users // users
_('Can see names of users'); _('Can see names of users');
_('Can see extra data of users (e.g. present and comment)'); _('Can see extra data of users (e.g. present and comment)');
_('Can manage users'); _('Can manage users');
_('Can change its own password');
// users config strings // users config strings
_('General'); _('General');

View File

@ -13,9 +13,7 @@
<div class="nav-toolbar"> <div class="nav-toolbar">
<!-- logo --> <!-- logo -->
<a routerLink="/" (click)="toggleSideNav()"> <a routerLink="/" (click)="toggleSideNav()">
<os-logo class="os-logo-container" <os-logo class="os-logo-container" inputAction="logo_web_header" [footer]="false"></os-logo>
inputAction="logo_web_header"
[footer]="false"></os-logo>
</a> </a>
</div> </div>
@ -30,11 +28,12 @@
<mat-icon>language</mat-icon> <mat-icon>language</mat-icon>
<span> {{ getLangName(this.translate.currentLang) }} </span> <span> {{ getLangName(this.translate.currentLang) }} </span>
</a> </a>
<a *ngIf="isLoggedIn" (click)="editProfile()" mat-list-item> <div *ngIf="isLoggedIn">
<a (click)="editProfile()" mat-list-item>
<mat-icon>person</mat-icon> <mat-icon>person</mat-icon>
<span translate>Edit profile</span> <span translate>Edit profile</span>
</a> </a>
<a *ngIf="isLoggedIn" (click)="changePassword()" mat-list-item> <a *osPerms="'users.can_change_password'" (click)="changePassword()" mat-list-item>
<mat-icon>vpn_key</mat-icon> <mat-icon>vpn_key</mat-icon>
<span translate>Change password</span> <span translate>Change password</span>
</a> </a>
@ -42,10 +41,13 @@
<mat-icon>exit_to_app</mat-icon> <mat-icon>exit_to_app</mat-icon>
<span translate>Logout</span> <span translate>Logout</span>
</a> </a>
<a *ngIf="!isLoggedIn" routerLink="/login" mat-list-item> </div>
<div *ngIf="!isLoggedIn">
<a routerLink="/login" mat-list-item>
<mat-icon>exit_to_app</mat-icon> <mat-icon>exit_to_app</mat-icon>
<span translate>Login</span> <span translate>Login</span>
</a> </a>
</div>
</mat-nav-list> </mat-nav-list>
</mat-expansion-panel> </mat-expansion-panel>
<!-- TODO: Could use translate.getLangs() to fetch available languages --> <!-- TODO: Could use translate.getLangs() to fetch available languages -->
@ -109,13 +111,11 @@
target="_blank" target="_blank"
(click)="mobileAutoCloseNav()" (click)="mobileAutoCloseNav()"
> >
<span><small><os-copyright-sign></os-copyright-sign>&nbsp;Copyright by OpenSlides</small></span> <span>
<small><os-copyright-sign></os-copyright-sign>&nbsp;Copyright by OpenSlides</small>
</span>
</a> </a>
<div class="os-footer-logo-container"> <div class="os-footer-logo-container"><os-logo inputAction="logo_web_header" footer="true"> </os-logo></div>
<os-logo inputAction="logo_web_header"
footer="true">
</os-logo>
</div>
</mat-nav-list> </mat-nav-list>
</mat-sidenav> </mat-sidenav>
<mat-sidenav-content> <mat-sidenav-content>