user1086102
user1086102

Reputation: 33

Grails Security Plugin: Requestmap is not consistence with database

I am new to Grails, and I would like to use requestMap for the security portion. However, if I update the rules in database, the new rules will not take effect till I restart the web application.

Does anyone has the same issue? or am I missing something?

Upvotes: 0

Views: 305

Answers (1)

Martin Hauner
Martin Hauner

Reputation: 1733

the request map is cached and you have to clear it after updating the database using springSecurityService.clearCachedRequestmaps(). This is shown in the plugins documentation in the requestmap cache section.

Upvotes: 1

Related Questions