Examples of doesUserHavePermissions()


Examples of com.dotmarketing.business.PermissionAPI.doesUserHavePermissions()

                req.setAttribute( WebKeys.TEMPLATE_CAN_ADD, false );
            } else {
                req.setAttribute( WebKeys.TEMPLATE_CAN_ADD, true );
            }

            req.setAttribute( WebKeys.TEMPLATE_CAN_DESIGN, perAPI.doesUserHavePermissions( WebAPILocator.getHostWebAPI().getCurrentHost( req ), "TEMPLATE_LAYOUTS:" + PermissionAPI.PERMISSION_EDIT, user ) );

            _viewWebAssets( req, user, Template.class, "template", WebKeys.TEMPLATES_VIEW_COUNT, WebKeys.TEMPLATES_VIEW, WebKeys.TEMPLATE_QUERY, WebKeys.TEMPLATE_SHOW_DELETED, WebKeys.TEMPLATE_HOST_CHANGED );

            return mapping.findForward( "portlet.ext.templates.view_templates" );
        } catch ( Exception e ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.