Skip to content

Commit 9df589b

Browse files
committed
Enable acf access for all users (not just factor1)
1 parent 4293aee commit 9df589b

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.5.4
2+
3+
- Enable acf access to users other than factor1
4+
15
## 1.5.3
26

37
- Update editor palette

inc/tweaks.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ function add_async_attribute($tag, $handle) {
135135
add_filter('script_loader_tag', 'add_async_attribute', 10, 2);
136136

137137
// Hide ACF from everyone except factor1admin
138-
$us = get_user_by('login', 'factor1admin');
138+
// $us = get_user_by('login', 'factor1admin');
139139

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

145145
// Custom excerpt length
146146
function custom_excerpt_length( $length ) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "f1-mission-bit",
3-
"version": "1.5.3",
3+
"version": "1.5.4",
44
"scripts": {
55
"build": "yarn test && yarn format && NODE_ENV=production gulp build && yarn build-js && yarn build-scss",
66
"build-js": "parcel build ./assets/js/theme.js --out-dir ./dist/ --no-content-hash --log-level 4 --public-url ./ --no-cache",

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://github.com/missionbit/f1-mission-bit
44
Author: Factor1 Studios
55
Author URI: https://factor1studios.com
66
Description: A custom WordPress theme for Mission Bit developed by Factor1
7-
Version: 1.5.3
7+
Version: 1.5.4
88
License: GPL-3.0
99
License URI:
1010
Text Domain:

0 commit comments

Comments
 (0)