You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-2Lines changed: 42 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ A browser-centric troubleshooting tool for OpenMage developers. Features:
36
36
37
37
## Quick Start
38
38
39
-
You need to be able to access the customers in the database. The first 20 customers with ID from 1 to 20 are allowed to view the output in the browser. You can edit the `entity_id` in the table `customer_entity` for these users.
39
+
You need to be able to access the customers in the database. By default, the first 20 customers with ID from 1 to 20 are allowed to view the output in the browser. You can edit the `entity_id` in the table `customer_entity` for these users. To allow access for specified customer IDs, see [Configuration](#configuration).
40
40
41
41
### Debug Helper
42
42
@@ -132,6 +132,46 @@ For public accessible URLs, tools like [SSL Labs](https://www.ssllabs.com/ssltes
132
132
133
133
Refer to [SslController.php](app/code/community/Kiatng/Shooter/controllers/SslController.php) for more details.
134
134
135
+
## Configuration
136
+
137
+
### Customizing Customer IDs for Access
138
+
139
+
By default, the module allows the first 20 customers (with IDs from 1 to 20) to access the output in the browser. To customize this behavior, you can define the allowed customer IDs in your module `config.xml` configuration file.
140
+
141
+
1. Open the file `etc/config.xml` in in your module.
142
+
2. Add the following configuration under the `<global>` section:
143
+
144
+
```xml
145
+
<config>
146
+
<!-- Add the following nodes -->
147
+
<shooter>
148
+
<access>
149
+
<up_to_ids>5</up_to_ids> <!-- For the first 5 customer IDs -->
150
+
<other_ids>100,200</other_ids> <!-- Add additional IDs separated by commas -->
151
+
</access>
152
+
</shooter>
153
+
<!-- end config -->
154
+
</config>
155
+
```
156
+
157
+
3. Save the file and clear the `config` cache to apply the changes.
158
+
4. Because the access is saved in frontend session, re-login may be required.
159
+
4. If your config doesn't work, add dependency in `/app/etc/modules/Your_Module.xml`:
160
+
161
+
```xml
162
+
<config>
163
+
<modules>
164
+
<Your_Module>
165
+
<active>true</active>
166
+
<codePool>local</codePool>
167
+
<depends> <!-- Add dependency here -->
168
+
<Kiatng_Shooter />
169
+
</depends>
170
+
</Your_Module>
171
+
</modules>
172
+
</config>
173
+
```
174
+
135
175
## Installation
136
176
137
177
### modman
@@ -176,5 +216,5 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
0 commit comments