Skip to content

Instantly share code, notes, and snippets.

View garside's full-sized avatar
💯
Human version of the 100 emoji

Eric Garside garside

💯
Human version of the 100 emoji
View GitHub Profile
@garside
garside / console.js
Created February 9, 2022 16:52
Shopify Audit Permissions
/*!
* Shopify Admin Auditing
*
* Copyright (c) 2022 Eric Garside (http://sakaralife.com)
* Available under the MIT license: https://opensource.org/licenses/MIT
*/
// The selector for permssion checkboxes label sets on the individual user pages (if shopify changes this)
const permissionSelector = 'label.Polaris-Choice_j5gzq:not([for^="Polaris"])'
// The selector for permission text within the checkbox label
# frozen_string_literal: true
# This assumes you use rails credentials for the secret key, if not change KEY_BASE to your key location
# Also assumes you have the rails/config gem setup with a something like the following:
#
# cipher:
# salt: "\x87\xB2\x99\x14\xAA?\xA6;\xA3\x11^\xAB\xBE\x1C\x99\rl\xF4r\xCF\x91\x13\xC1\xAC\xD8HT\x1E\xA8\x04h\x95"
#
# You can (and should, don't use this one above!) generate your own salt using:
#