Changeset 1781

Show
Ignore:
Timestamp:
20-04-11 11:57:14 (3 years ago)
Author:
robert@…
Message:

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

Files:
1 modified

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