Hi!!

 Disabling System menu for End User but keep for Admin User locate the 
following code in app.js file 

r.createElement(l,{title:this._systemTitle(),active:this._isActive("/system")},this.state.permissions.SOURCES_READ&&r.createElement(u,{href:jsRoutes.controllers.SystemController.index(0).url},"Overview"),this.state.permissions.SOURCES_READ&&r.createElement(u,{href:jsRoutes.controllers.NodesController.nodes().url},"Nodes"),this.state.permissions.SOURCES_READ&&this._isPermitted(["INPUTS_READ"])&&r.createElement(u,{href:jsRoutes.controllers.InputsController.index().url},"Inputs"),this._isPermitted(["OUTPUTS_READ"])&&r.createElement(u,{href:jsRoutes.controllers.OutputsController.index().url},"Outputs"),this._isPermitted(["COLLECTORS_READ"])&&r.createElement(u,{href:jsRoutes.controllers.CollectorsController.index().url},"Collectors"),this._isPermitted(["INDICES_READ"])&&r.createElement(u,{href:jsRoutes.controllers.IndicesController.index().url},"Indices"),this._isPermitted(["LOGGERS_READ"])&&r.createElement(u,{href:jsRoutes.controllers.LoggingController.index().url},"Logging"),this._isPermitted(["USERS_EDIT"])&&r.createElement(u,{href:jsRoutes.controllers.UsersController.index().url},"Users"),this._isPermitted(["DASHBOARDS_CREATE","INPUTS_CREATE","STREAMS_CREATE"])&&r.createElement(u,{href:jsRoutes.controllers.BundlesController.index().url},"Content
 
Packs"),this._isPermitted(["INPUTS_EDIT"])&&r.createElement(u,{href:jsRoutes.controllers.GrokPatternsController.index().url},"Grok
 
Patterns")))

and replace with the following 

this.state.permissions.SOURCES_READ?r.createElement(l,{title:this._systemTitle(),active:this._isActive("/system")},this.state.permissions.SOURCES_READ&&r.createElement(u,{href:jsRoutes.controllers.SystemController.index(0).url},"Overview"),this.state.permissions.SOURCES_READ&&r.createElement(u,{href:jsRoutes.controllers.NodesController.nodes().url},"Nodes"),this.state.permissions.SOURCES_READ&&this._isPermitted(["INPUTS_READ"])&&r.createElement(u,{href:jsRoutes.controllers.InputsController.index().url},"Inputs"),this._isPermitted(["OUTPUTS_READ"])&&r.createElement(u,{href:jsRoutes.controllers.OutputsController.index().url},"Outputs"),this._isPermitted(["COLLECTORS_READ"])&&r.createElement(u,{href:jsRoutes.controllers.CollectorsController.index().url},"Collectors"),this._isPermitted(["INDICES_READ"])&&r.createElement(u,{href:jsRoutes.controllers.IndicesController.index().url},"Indices"),this._isPermitted(["LOGGERS_READ"])&&r.createElement(u,{href:jsRoutes.controllers.LoggingController.index().url},"Logging"),this._isPermitted(["USERS_EDIT"])&&r.createElement(u,{href:jsRoutes.controllers.UsersController.index().url},"Users"),this._isPermitted(["DASHBOARDS_CREATE","INPUTS_CREATE","STREAMS_CREATE"])&&r.createElement(u,{href:jsRoutes.controllers.BundlesController.index().url},"Content
 
Packs"),this._isPermitted(["INPUTS_EDIT"])&&r.createElement(u,{href:jsRoutes.controllers.GrokPatternsController.index().url},"Grok
 
Patterns")):null)

This will hide system for End User only.

Cheers!!
Anant



On Friday, 27 November 2015 16:46:06 UTC+5:30, Hitsu Yaga wrote:
>
> Hi Anant,
> I install graylog through repo and yum. It's possible to disable the 
> System menu? If I want admin can access System menu and user can not, how 
> can I modify it? Thanks for your help!!!
>
> On Thursday, November 26, 2015 at 5:15:22 PM UTC+7, Anant Sawant wrote:
>>
>> Hi!!
>>
>> If you are running your own compiled source code for Graylog and not the 
>> ready to run Graylog package you can simply hide this menu for end user.
>> Just disable the System menu from app.js file located in the 
>> "graylog-web-interface.graylog-web-interface-1.1.6-assets" jar. Or under 
>> source code.
>>
>> Cheers,
>> Anant.
>>
>> On Thursday, 26 November 2015 09:34:36 UTC+5:30, Hitsu Yaga wrote:
>>>
>>> Dear all,
>>> I am also facing with this problem now. I don't want customer see 
>>> anything about our node, system....How can I do that? please advise!!!
>>>
>>> On Wednesday, November 25, 2015 at 11:15:02 PM UTC+7, Tiểu Yết wrote:
>>>>
>>>> Hi everyone,
>>>> We just setup graylog server for our customers can access their logs. 
>>>> Now we can do it with stream that seperate log with specific field. But 
>>>> when our customer login web-interface they can access something about our 
>>>> system as attached file. We only want they only access stream and 
>>>> dashboard. It's possible?
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/bf875a91-ec25-42e5-9522-d5ade495c4d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to