[seam-commits] Seam SVN: r15051 - branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Thu Aug 16 05:26:21 EDT 2012
Author: vdedik
Date: 2012-08-16 05:26:21 -0400 (Thu, 16 Aug 2012)
New Revision: 15051
Modified:
branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/BookingListAction.groovy
branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelBookingAction.groovy
branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelSearchingAction.groovy
Log:
Groovybooking example missing @Restrict on some actions
Modified: branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/BookingListAction.groovy
===================================================================
--- branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/BookingListAction.groovy 2012-08-16 08:57:55 UTC (rev 15050)
+++ branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/BookingListAction.groovy 2012-08-16 09:26:21 UTC (rev 15051)
@@ -16,9 +16,11 @@
import org.jboss.seam.log.Log
import org.jboss.seam.example.groovy.model.Booking
import org.jboss.seam.example.groovy.model.User
+import org.jboss.seam.annotations.security.Restrict
@Scope(ScopeType.SESSION)
@Name("bookingList")
+ at Restrict("#{identity.loggedIn}")
class BookingListAction implements Serializable
{
Modified: branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelBookingAction.groovy
===================================================================
--- branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelBookingAction.groovy 2012-08-16 08:57:55 UTC (rev 15050)
+++ branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelBookingAction.groovy 2012-08-16 09:26:21 UTC (rev 15051)
@@ -16,8 +16,10 @@
import org.jboss.seam.example.groovy.model.Booking
import org.jboss.seam.example.groovy.model.Hotel
import org.jboss.seam.example.groovy.model.User
+import org.jboss.seam.annotations.security.Restrict
@Name("hotelBooking")
+ at Restrict("#{identity.loggedIn}")
class HotelBookingAction
{
Modified: branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelSearchingAction.groovy
===================================================================
--- branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelSearchingAction.groovy 2012-08-16 08:57:55 UTC (rev 15050)
+++ branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelSearchingAction.groovy 2012-08-16 09:26:21 UTC (rev 15051)
@@ -13,9 +13,11 @@
import org.jboss.seam.annotations.Factory
import org.jboss.seam.example.groovy.model.Hotel
+import org.jboss.seam.annotations.security.Restrict
@Name("hotelSearch")
@Scope(ScopeType.SESSION)
+ at Restrict("#{identity.loggedIn}")
class HotelSearchingAction
{
More information about the seam-commits
mailing list