Skip to content
Snippets Groups Projects
Commit 175d1a44 authored by John Watkins's avatar John Watkins
Browse files

Added Explore link to index

parent 16651772
No related branches found
No related tags found
1 merge request!114LoggingService service class, new method to add a log to the "Logs" table when...
......@@ -125,7 +125,7 @@ public class AdminController {
//For each perm
for(UserPermissions p : permList){
//If it is the shop creator then pair them with the shop
if(p.getAdminType().getAdminTypeId() == 2 && user.get().getUserId() == p.getUser().getUserId()){
if((p.getAdminType().getAdminTypeId() == 2 || p.getAdminType().getAdminTypeId() == 1) && user.get().getUserId() == p.getUser().getUserId()){
//Set an empty list for the category if it doesn't exist
if(!categorySortedShops.containsKey(sh.getCategory().getCategoryName())){
categorySortedShops.put(sh.getCategory().getCategoryName(),new ArrayList<>());
......
......@@ -28,12 +28,14 @@
<p th:text="${reward_amount_obtained} + '/' + ${total_reward_amount}"></p>
</div>
<div class="level-right">
<a th:href="'businessDetails?shopId=' + ${shop.getShopId()}">
<button class="button is-rounded">
Explore
<span class="icon is-small is-left ml-1">
<i class="fas fa-arrow-right"></i>
</span>
</button>
</a>
</div>
</div>
</th:block>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment