Skip to content

Commit

Permalink
Enable acf access for all users (not just factor1)
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Nov 8, 2022
1 parent 4293aee commit 9df589b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.5.4

- Enable acf access to users other than factor1

## 1.5.3

- Update editor palette
Expand Down
10 changes: 5 additions & 5 deletions inc/tweaks.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ function add_async_attribute($tag, $handle) {
add_filter('script_loader_tag', 'add_async_attribute', 10, 2);

// Hide ACF from everyone except factor1admin
$us = get_user_by('login', 'factor1admin');
// $us = get_user_by('login', 'factor1admin');

// If the current logged-in user is not us, hide ACF
if( wp_get_current_user()->user_login !== $us->user_login ) :
add_filter('acf/settings/show_admin', '__return_false');
endif;
// // If the current logged-in user is not us, hide ACF
// if( wp_get_current_user()->user_login !== $us->user_login ) :
// add_filter('acf/settings/show_admin', '__return_false');
// endif;

// Custom excerpt length
function custom_excerpt_length( $length ) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "f1-mission-bit",
"version": "1.5.3",
"version": "1.5.4",
"scripts": {
"build": "yarn test && yarn format && NODE_ENV=production gulp build && yarn build-js && yarn build-scss",
"build-js": "parcel build ./assets/js/theme.js --out-dir ./dist/ --no-content-hash --log-level 4 --public-url ./ --no-cache",
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://github.com/missionbit/f1-mission-bit
Author: Factor1 Studios
Author URI: https://factor1studios.com
Description: A custom WordPress theme for Mission Bit developed by Factor1
Version: 1.5.3
Version: 1.5.4
License: GPL-3.0
License URI:
Text Domain:
Expand Down

0 comments on commit 9df589b

Please sign in to comment.