Index: trunk/grails-app/controllers/ManufacturerController.groovy
===================================================================
--- trunk/grails-app/controllers/ManufacturerController.groovy	(revision 371)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class ManufacturerController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ manufacturerInstanceList: Manufacturer.list( params ), manufacturerInstanceTotal: Manufacturer.count() ]
-    }
-
-    def show = {
-        def manufacturerInstance = Manufacturer.get( params.id )
-
-        if(!manufacturerInstance) {
-            flash.message = "Manufacturer not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ manufacturerInstance : manufacturerInstance ] }
-    }
-
-    def delete = {
-        def manufacturerInstance = Manufacturer.get( params.id )
-        if(manufacturerInstance) {
-            try {
-                manufacturerInstance.delete(flush:true)
-                flash.message = "Manufacturer ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "Manufacturer ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "Manufacturer not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def manufacturerInstance = Manufacturer.get( params.id )
-
-        if(!manufacturerInstance) {
-            flash.message = "Manufacturer not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ manufacturerInstance : manufacturerInstance ]
-        }
-    }
-
-    def update = {
-        def manufacturerInstance = Manufacturer.get( params.id )
-        if(manufacturerInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(manufacturerInstance.version > version) {
-                    
-                    manufacturerInstance.errors.rejectValue("version", "manufacturer.optimistic.locking.failure", "Another user has updated this Manufacturer while you were editing.")
-                    render(view:'edit',model:[manufacturerInstance:manufacturerInstance])
-                    return
-                }
-            }
-            manufacturerInstance.properties = params
-            if(!manufacturerInstance.hasErrors() && manufacturerInstance.save(flush: true)) {
-                flash.message = "Manufacturer ${params.id} updated"
-                redirect(action:show,id:manufacturerInstance.id)
-            }
-            else {
-                render(view:'edit',model:[manufacturerInstance:manufacturerInstance])
-            }
-        }
-        else {
-            flash.message = "Manufacturer not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def manufacturerInstance = new Manufacturer()
-        manufacturerInstance.properties = params
-        return ['manufacturerInstance':manufacturerInstance]
-    }
-
-    def save = {
-        def manufacturerInstance = new Manufacturer(params)
-        if(!manufacturerInstance.hasErrors() && manufacturerInstance.save(flush: true)) {
-            flash.message = "Manufacturer ${manufacturerInstance.id} created"
-            redirect(action:show,id:manufacturerInstance.id)
-        }
-        else {
-            render(view:'create',model:[manufacturerInstance:manufacturerInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/ManufacturerDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/ManufacturerDetailedController.groovy	(revision 372)
+++ trunk/grails-app/controllers/ManufacturerDetailedController.groovy	(revision 372)
@@ -0,0 +1,100 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
+class ManufacturerDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ manufacturerInstanceList: Manufacturer.list( params ), manufacturerInstanceTotal: Manufacturer.count() ]
+    }
+
+    def show = {
+        def manufacturerInstance = Manufacturer.get( params.id )
+
+        if(!manufacturerInstance) {
+            flash.message = "Manufacturer not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ manufacturerInstance : manufacturerInstance ] }
+    }
+
+    def delete = {
+        def manufacturerInstance = Manufacturer.get( params.id )
+        if(manufacturerInstance) {
+            try {
+                manufacturerInstance.delete(flush:true)
+                flash.message = "Manufacturer ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "Manufacturer ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "Manufacturer not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def manufacturerInstance = Manufacturer.get( params.id )
+
+        if(!manufacturerInstance) {
+            flash.message = "Manufacturer not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ manufacturerInstance : manufacturerInstance ]
+        }
+    }
+
+    def update = {
+        def manufacturerInstance = Manufacturer.get( params.id )
+        if(manufacturerInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(manufacturerInstance.version > version) {
+                    
+                    manufacturerInstance.errors.rejectValue("version", "manufacturer.optimistic.locking.failure", "Another user has updated this Manufacturer while you were editing.")
+                    render(view:'edit',model:[manufacturerInstance:manufacturerInstance])
+                    return
+                }
+            }
+            manufacturerInstance.properties = params
+            if(!manufacturerInstance.hasErrors() && manufacturerInstance.save(flush: true)) {
+                flash.message = "Manufacturer ${params.id} updated"
+                redirect(action:show,id:manufacturerInstance.id)
+            }
+            else {
+                render(view:'edit',model:[manufacturerInstance:manufacturerInstance])
+            }
+        }
+        else {
+            flash.message = "Manufacturer not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def manufacturerInstance = new Manufacturer()
+        manufacturerInstance.properties = params
+        return ['manufacturerInstance':manufacturerInstance]
+    }
+
+    def save = {
+        def manufacturerInstance = new Manufacturer(params)
+        if(!manufacturerInstance.hasErrors() && manufacturerInstance.save(flush: true)) {
+            flash.message = "Manufacturer ${manufacturerInstance.id} created"
+            redirect(action:show,id:manufacturerInstance.id)
+        }
+        else {
+            render(view:'create',model:[manufacturerInstance:manufacturerInstance])
+        }
+    }
+}
Index: trunk/grails-app/controllers/SupplierController.groovy
===================================================================
--- trunk/grails-app/controllers/SupplierController.groovy	(revision 371)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class SupplierController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ supplierInstanceList: Supplier.list( params ), supplierInstanceTotal: Supplier.count() ]
-    }
-
-    def show = {
-        def supplierInstance = Supplier.get( params.id )
-
-        if(!supplierInstance) {
-            flash.message = "Supplier not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ supplierInstance : supplierInstance ] }
-    }
-
-    def delete = {
-        def supplierInstance = Supplier.get( params.id )
-        if(supplierInstance) {
-            try {
-                supplierInstance.delete(flush:true)
-                flash.message = "Supplier ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "Supplier ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "Supplier not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def supplierInstance = Supplier.get( params.id )
-
-        if(!supplierInstance) {
-            flash.message = "Supplier not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ supplierInstance : supplierInstance ]
-        }
-    }
-
-    def update = {
-        def supplierInstance = Supplier.get( params.id )
-        if(supplierInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(supplierInstance.version > version) {
-                    
-                    supplierInstance.errors.rejectValue("version", "supplier.optimistic.locking.failure", "Another user has updated this Supplier while you were editing.")
-                    render(view:'edit',model:[supplierInstance:supplierInstance])
-                    return
-                }
-            }
-            supplierInstance.properties = params
-            if(!supplierInstance.hasErrors() && supplierInstance.save(flush: true)) {
-                flash.message = "Supplier ${params.id} updated"
-                redirect(action:show,id:supplierInstance.id)
-            }
-            else {
-                render(view:'edit',model:[supplierInstance:supplierInstance])
-            }
-        }
-        else {
-            flash.message = "Supplier not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def supplierInstance = new Supplier()
-        supplierInstance.properties = params
-        return ['supplierInstance':supplierInstance]
-    }
-
-    def save = {
-        def supplierInstance = new Supplier(params)
-        if(!supplierInstance.hasErrors() && supplierInstance.save(flush: true)) {
-            flash.message = "Supplier ${supplierInstance.id} created"
-            redirect(action:show,id:supplierInstance.id)
-        }
-        else {
-            render(view:'create',model:[supplierInstance:supplierInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/SupplierDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/SupplierDetailedController.groovy	(revision 372)
+++ trunk/grails-app/controllers/SupplierDetailedController.groovy	(revision 372)
@@ -0,0 +1,100 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
+class SupplierDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ supplierInstanceList: Supplier.list( params ), supplierInstanceTotal: Supplier.count() ]
+    }
+
+    def show = {
+        def supplierInstance = Supplier.get( params.id )
+
+        if(!supplierInstance) {
+            flash.message = "Supplier not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ supplierInstance : supplierInstance ] }
+    }
+
+    def delete = {
+        def supplierInstance = Supplier.get( params.id )
+        if(supplierInstance) {
+            try {
+                supplierInstance.delete(flush:true)
+                flash.message = "Supplier ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "Supplier ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "Supplier not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def supplierInstance = Supplier.get( params.id )
+
+        if(!supplierInstance) {
+            flash.message = "Supplier not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ supplierInstance : supplierInstance ]
+        }
+    }
+
+    def update = {
+        def supplierInstance = Supplier.get( params.id )
+        if(supplierInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(supplierInstance.version > version) {
+                    
+                    supplierInstance.errors.rejectValue("version", "supplier.optimistic.locking.failure", "Another user has updated this Supplier while you were editing.")
+                    render(view:'edit',model:[supplierInstance:supplierInstance])
+                    return
+                }
+            }
+            supplierInstance.properties = params
+            if(!supplierInstance.hasErrors() && supplierInstance.save(flush: true)) {
+                flash.message = "Supplier ${params.id} updated"
+                redirect(action:show,id:supplierInstance.id)
+            }
+            else {
+                render(view:'edit',model:[supplierInstance:supplierInstance])
+            }
+        }
+        else {
+            flash.message = "Supplier not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def supplierInstance = new Supplier()
+        supplierInstance.properties = params
+        return ['supplierInstance':supplierInstance]
+    }
+
+    def save = {
+        def supplierInstance = new Supplier(params)
+        if(!supplierInstance.hasErrors() && supplierInstance.save(flush: true)) {
+            flash.message = "Supplier ${supplierInstance.id} created"
+            redirect(action:show,id:supplierInstance.id)
+        }
+        else {
+            render(view:'create',model:[supplierInstance:supplierInstance])
+        }
+    }
+}
