edit_facility_26115 #3
|
@ -104,7 +104,7 @@ public interface CKanPublisherService extends RemoteService {
|
|||
* @return true if he/she can publish, false otherwise
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
boolean isPublisherUser() throws Exception;
|
||||
Boolean isPublisherUser() throws Exception;
|
||||
|
||||
/**
|
||||
* Get the list of vocabulary tags for this scope.
|
||||
|
@ -131,7 +131,7 @@ public interface CKanPublisherService extends RemoteService {
|
|||
* @return true, if is owner or admin user
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
boolean isPublisherOwnerOrAdminUser(String datasetIdOrName) throws Exception;
|
||||
Boolean isPublisherOwnerOrAdminUser(String datasetIdOrName) throws Exception;
|
||||
|
||||
/**
|
||||
* Gets the dataset bean for update.
|
||||
|
|
|
@ -181,4 +181,10 @@
|
|||
height: 22px !important;
|
||||
padding: 0px !important;
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
#the_catalogue_nav_bar .btn.disabled {
|
||||
/*background-color: #E6E6E6;*/
|
||||
text-decoration: none !important;
|
||||
color: #333333 !important;
|
||||
}
|
|
@ -1181,7 +1181,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
|
|||
* @throws Exception the exception
|
||||
*/
|
||||
@Override
|
||||
public boolean isPublisherUser() throws Exception {
|
||||
public Boolean isPublisherUser() throws Exception {
|
||||
|
||||
String username = GenericUtils.getCurrentUser(getThreadLocalRequest()).getUsername();
|
||||
logger.info("Checking if the user " + username + " can publish or not on the catalogue");
|
||||
|
@ -1265,7 +1265,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
|
|||
* @throws Exception the exception
|
||||
*/
|
||||
@Override
|
||||
public boolean isPublisherOwnerOrAdminUser(String datasetIdOrName) throws Exception {
|
||||
public Boolean isPublisherOwnerOrAdminUser(String datasetIdOrName) throws Exception {
|
||||
|
||||
String username = GenericUtils.getCurrentUser(getThreadLocalRequest()).getUsername();
|
||||
logger.info("Checking if the user " + username + " can publish or not on the catalogue");
|
||||
|
|
Loading…
Reference in New Issue