// Copyright (c) 2016, Frappe Technologies and contributors
// For license information, please see license.txt

frappe.ui.form.on('Page', {
	refresh: function(frm) {
		if(!frappe.boot.developer_mode && user != 'Administrator') {
			// make the document read-only
			frm.set_read_only();
		}
		if (!frm.is_new() && !frm.doc.istable) {
			frm.add_custom_button(__('Go to {0} Page', [frm.doc.title || frm.doc.name]), () => {
				frappe.set_route(frm.doc.name);
			});
		}
	}
});

// Copyright (c) 2016, Frappe Technologies and contributors
// For license information, please see license.txt

frappe.ui.form.on('Page', {
	refresh: function(frm) {
		if (!frappe.boot.developer_mode && frappe.session.user != 'Administrator') {
			// make the document read-only
			frm.set_read_only();
		}
		if (!frm.is_new() && !frm.doc.istable) {
			frm.add_custom_button(__('Go to {0} Page', [frm.doc.title || frm.doc.name]), () => {
				frappe.set_route(frm.doc.name);
			});
		}
	}
});

Add a space and user frappe.session.user instead of just user
style: Add a space and user frappe.session.user instead of just user
