#!/bin/bash sb=streamblock username=$1 streamname=$2 ipaddr=$3 groups=$4 if [[ $streamname == //streams/name/* ]] then if echo "$groups" | grep -qs $sb then echo "User $username ($ipaddr) is not allowed to change $streamname." exit 1 else exit 0 fi else # not in the set of restricted streams exit 0 fi
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 24577 | Adam Morriss | Moving trigger script to 'triggers' folder | ||
#2 | 24496 | Adam Morriss | Comments added to the script, should I get the opportunity to revisit this. | ||
#1 | 24495 | Adam Morriss |
Script to block creation/edit of streams by users belonging to a certain group. Plenty more to do here. |