Changeset 1781


Ignore:
Timestamp:
Apr 20, 2011, 11:57:14 AM (6 years ago)
Author:
robert@…
Message:

Added support in RestController? for distinction between administrators and non-administrators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/RestController.groovy

    r1655 r1781  
    8383        def getUser = {
    8484                SecUser user = authenticationService.getRemotelyLoggedInUser( params.consumer, params.token )
    85                 def reply = [username: user.username, id: user.id]
     85                def reply = [username: user.username, id: user.id, isAdministrator: user.hasAdminRights() ]
    8686
    8787                // set output header to json
Note: See TracChangeset for help on using the changeset viewer.