Hide Settings Sidebar Based on Role

Very similar to https://github.com/TryGhost/Ghost/pull/3356 - the Settings sidebar links are now restricted based on role.
Ha, exact same convo. Cool
On Jul 22, 2014 12:28 AM, "Ian Mitchell" <notifications@github.com> wrote:

> In core/client/models/user.js:
>
> > @@ -32,6 +32,12 @@ var User = DS.Model.extend(NProgressSaveMixin, ValidationEngine, {
> >          return this.get('roles').objectAt(0).get('name').toLowerCase() === 'author';
> >      }),
> >
> > +    // TODO: Once client-side permissions are in place,
> > +    // remove the hard role check.
> > +    isEditor: Ember.computed('roles', function () {
>
> Currently there is a limit of one Role per User. The codebase will support
> more in the future -- when that time comes, there should probably be a
> client side permission system that would replace this code. There is
> further discussion here, on an earlier PR: #3356
> <https://github.com/TryGhost/Ghost/pull/3356>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TryGhost/Ghost/pull/3358/files#r15212478>.
>