← Back to team overview

dhis2-users team mailing list archive

Re: List of permission in DHIS2

 

Dear Elmarie,

They are hard coded using spring security.
see an extract from the code.

<action name="alluser" class="org.hisp.dhis.user.action.GetUserListAction">
      <result name="success" type="velocity">/main.vm</result>
      <param name="page">/dhis-web-maintenance-user/allUser.vm</param>
      <param name="menu">/dhis-web-maintenance-user/menu.vm</param>
      <param name="javascripts">javascript/user.js,javascript/filterTable.js</param>
      <param name="requiredAuthorities">F_USER_VIEW</param>
    </action>

    <action name="getUser" class="org.hisp.dhis.user.action.GetUserAction">
      <result name="success"
type="velocity-json">/dhis-web-commons/ajax/jsonUser.vm</result>
      <param name="onExceptionReturn">plainTextError</param>
    </action>

    <action name="removeUser"
class="org.hisp.dhis.user.action.RemoveUserAction">
      <result name="success"
type="velocity-json">/dhis-web-commons/ajax/jsonResponseSuccess.vm</result>
      <result name="logout"
type="redirect">/dhis-web-commons-security/logout.action</result>
      <result name="error"
type="velocity-json">/dhis-web-commons/ajax/jsonResponseError.vm</result>
      <param name="requiredAuthorities">F_USER_DELETE</param>
      <param name="onExceptionReturn">plainTextError</param>
    </action>

    <action name="showAddUserForm"
class="org.hisp.dhis.user.action.SetupTreeAction">
      <result name="success" type="velocity">/main.vm</result>
      <param name="page">/dhis-web-maintenance-user/addUserForm.vm</param>
      <param name="javascripts">../dhis-web-commons/oust/oust.js,../dhis-web-commons/ouwt/ouwt.js,javascript/user.js</param>
      *<param name="requiredAuthorities">F_USER_ADD</param>*
    </action>

    <action name="addUser" class="org.hisp.dhis.user.action.AddUserAction">
      <result name="success"
type="redirect">user.action?currentPage=${keyCurrentPage}&amp;key=${keyCurrentKey}</result>
      <result name="error"
type="velocity-json">/dhis-web-commons/ajax/jsonResponseError.vm</result>
      <param name="javascripts">javascript/user.js</param>
      <param name="requiredAuthorities">F_USER_ADD</param>
    </action>

Also follow these link.
http://bazaar.launchpad.net/~dhis2-devs-core/dhis2/2.19/view/head:/dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/org/hisp/dhis/user/i18n_module.properties

Alex

On Tue, Jun 9, 2015 at 9:19 PM, Elmarie Claasen <elmarie@xxxxxxxx> wrote:

> Hi all,
>
>
>
> Can anyone provide me with a complete list of available userrole
> authorities which appears on the left side when you create a user role?
>
>
>
> I don’t see any table with that information in dhis2.
>
>
>
> Much appreciated - thanks
>
>
>
> Regards,
>
>
>
> *Elmarie Claasen*
>
> [image: Hisp logo]
>
> Project Manager
>
> Health Information Systems Program
>
> Tel:      041-367 1027
>
> Cell:     082 374 2209
>
> E-mail: elmarie@xxxxxxxx
>
> Skype:  elmarie.claasen52
>
>
>
>
>
> This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer
> .   Please read the disclaimer before opening any attachment or taking any
> other action in terms of this electronic transmission.
> If you cannot access the disclaimer, kindly send an email to disclaimer@xxxxxxxx
> and a copy will be provided to you. By replying to this e-mail or opening
> any attachment you agree to be bound by the provisions of the disclaimer.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET
Kampala
Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems -
DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don't want to be anything other than what I have been - one tree hill "

PNG image


Follow ups

References