Skip to content

Instantly share code, notes, and snippets.

View drewbrokke's full-sized avatar
🦆
work work work

Drew Brokke drewbrokke

🦆
work work work
View GitHub Profile
:apps:layout:layout-taglib:expandSoyCompileDependencyComliferayfrontendjsmetalweb200
:apps:layout:layout-taglib:expandSoyCompileDependencyComliferayfrontendjsweb200 UP-TO-DATE
:apps:layout:layout-taglib:expandSoyCompileDependencyComliferayfrontendtaglib300 UP-TO-DATE
:apps:layout:layout-taglib:npmInstall UP-TO-DATE
:apps:layout:layout-taglib:transpileJS
Running 'build'...
Compiling soy
Error in plugin 'metal-tools-soy'
Message:
Compile error:
theme.css.fast.load=false
theme.css.fast.load.check.request.parameter=true
theme.images.fast.load=false
theme.images.fast.load.check.request.parameter=true
javascript.fast.load=false
javascript.log.enabled=false
layout.template.cache.enabled=false

Roles and Permissions (intro)

https://github.com/rbohl/liferay-docs/blob/LRDOCS-4999-roles-permissions-7.1/discover/portal/articles/190-managing-users/02-roles-and-permissions/00-intro.markdown

Roles collect permissions, and users are assigned to roles, either directly or through their association with a User Group, an Organization, or a Site.

  • Is this accurate? To my knowledge, the only association that allows a user to inherit a role is User Group. Organization and Site memberships do not grant role associations. Is there a working example of this somewhere? I could be wrong but I'd like to double-check.

Read here for more information about teams.

The "here" link seems to be broken, but maybe that's known/expected

/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
##
## DO NOT EDIT THIS FILE.
##
## To update the properties of this file, create a separate properties file
## named "app.server.${user.name}.properties" with the properties to overwrite.
##
##
## Server Type
##
Remaining frontend tasks
@drewbrokke
drewbrokke / regenUAD
Last active April 12, 2018 23:58
Regen UAD modules
#!/bin/bash
TOP_LEVEL="$(git rev-parse --show-toplevel)"
GRADLEW="${TOP_LEVEL}/gradlew"
# Go to top level
cd "${TOP_LEVEL}" || exit 1
@drewbrokke
drewbrokke / uadDemo
Last active May 4, 2018 20:30
uadDemo helper script
#!/bin/bash
which jq 1>/dev/null || error "This script requires jq to be installed. See https://stedolan.github.io/jq/ for more details."
VERBOSE=0
while getopts v FLAGS; do
case $FLAGS in
v) VERBOSE=1 ;;
*) ;;
@drewbrokke
drewbrokke / README.md
Created February 28, 2018 17:14
Move language keys from one directory to another

moveLang

Usage

moveLang \
  -k "key-one key-two key-three" \
  -s modules/apps/foundation/contacts/contacts-web/src/main/resources/content \
  -t portal-impl/src/content
@drewbrokke
drewbrokke / log.log
Created January 19, 2018 18:19
Test results x16
✔︎ (0) portal-configuration/portal-configuration-settings-test|(LPS-76948)⇒ grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration && grd testintegration
Configuration on demand is an incubating feature.
:apps:foundation:portal-configuration:portal-configuration-settings-test:compileJava UP-TO-DATE
:apps:foundation:portal-configuration:portal-configuration-settings-test:buildCSS UP-TO-DATE
:apps:foundation:portal-configuration:portal-configuration-settings-test:processResources UP-TO-DATE
:apps:foundation:portal-configuration:portal-configuration-settings-test:transpileJS SKIPPED
:apps:foundation:portal-configuration:portal-configuration-settings-test:configJSModules SKIPPED
:apps:foundation:portal-configuration:portal-configu