src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (bIsEndUser) {
			var oUriParams, sLayer;
			if (bIsEndUser) {
				return "USER";
			}

			oUriParams = this._getUriParameters();
			sLayer = oUriParams.get("sap-ui-layer") || "";
			sLayer = sLayer.toUpperCase();
			return sLayer || "CUSTOMER";
		}
function (bIsEndUser) {
			var oUriParams, sLayer;
			if (bIsEndUser) {
				return "USER";
			}

			oUriParams = this._getUriParameters();
			sLayer = oUriParams.get("sap-ui-layer") || "";
			sLayer = sLayer.toUpperCase();
			return sLayer || "CUSTOMER";
		}
function ( bIsEndUser ) { var oUriParams , sLayer ; if ( bIsEndUser ) { return "USER" ; } oUriParams = this . _getUriParameters ( ) ; sLayer = oUriParams . get ( "sap-ui-layer" ) || "" ; sLayer = sLayer . toUpperCase ( ) ; return sLayer || "CUSTOMER" ; }
Returns the current layer as defined by the url parameter. If the end user flag is set, it always returns "USER".

@param {boolean} bIsEndUser - the end user flag
@returns {string} the current layer
@public
@function
@name sap.ui.fl.Utils.getCurrentLayer
Returns the current layer as defined by the url parameter . If the end user flag is set it always returns USER .