File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 <v-tabs v-model =" tab" color =" primary" class =" mb-6" >
2020 <v-tab value =" personal" >My Requests</v-tab >
2121 <v-tab value =" team" v-if =" isSupervisor || isAdmin" >Team Requests</v-tab >
22- <v-tab value =" explore" v-if = " isAdmin " >All Users History</v-tab >
22+ <v-tab value =" explore" >All Users History</v-tab >
2323 </v-tabs >
2424
2525 <v-row class =" px-2" >
@@ -204,14 +204,17 @@ export default defineComponent({
204204 return result ;
205205 }, null );
206206
207+ // Fetch users list (for explore tab)
207208 // Fetch users list (for explore tab)
208209 // Fetch users list (for explore tab)
209210 const fetchUsers = async () => {
210211 isLoadingUsers .value = true ;
211212 try {
212- // Now any user can check any user requests
213- // Since we want consistency and listAllActiveOfficeUsers is handy:
214- users .value = await listAllActiveOfficeUsers ($api );
213+ // Use general list endpoint which is accessible by all authenticated users
214+ const result = await $api .users .list ({ page_size: 1000 });
215+ if (result ) {
216+ users .value = result .results ;
217+ }
215218 } catch (e ) {
216219 console .error (" Failed to fetch users" , e )
217220 } finally {
You can’t perform that action at this time.
0 commit comments