mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
1f22d8c28c
issue #4248 - tag management is ready for release, this takes the training wheels off :) - remove config flag - remove labs checkbox and related code
24 lines
1.1 KiB
JavaScript
24 lines
1.1 KiB
JavaScript
var SettingsController = Ember.Controller.extend({
|
|
needs: ['feature'],
|
|
|
|
showGeneral: Ember.computed('session.user.name', function () {
|
|
return this.get('session.user.isAuthor') || this.get('session.user.isEditor') ? false : true;
|
|
}),
|
|
showUsers: Ember.computed('session.user.name', function () {
|
|
return this.get('session.user.isAuthor') ? false : true;
|
|
}),
|
|
showTags: Ember.computed('session.user.name', function () {
|
|
return this.get('session.user.isAuthor') ? false : true;
|
|
}),
|
|
showCodeInjection: Ember.computed('session.user.name', 'controllers.feature.codeInjectionUI', function () {
|
|
return this.get('session.user.isAuthor') || this.get('session.user.isEditor') || !this.get('controllers.feature.codeInjectionUI') ? false : true;
|
|
}),
|
|
showLabs: Ember.computed('session.user.name', function () {
|
|
return this.get('session.user.isAuthor') || this.get('session.user.isEditor') ? false : true;
|
|
}),
|
|
showAbout: Ember.computed('session.user.name', function () {
|
|
return this.get('session.user.isAuthor') ? false : true;
|
|
})
|
|
});
|
|
|
|
export default SettingsController;
|